What is Assignment: Definition and 358 Discussions

In computer programming, an assignment statement sets and/or re-sets the value stored in the storage location(s) denoted by a variable name; in other words, it copies a value into the variable. In most imperative programming languages, the assignment statement (or expression) is a fundamental construct.
Today, the most commonly used notation for this basic operation has come to be x = expr (originally Superplan 1949–51, popularized by Fortran 1957 and C) followed by x := expr (originally ALGOL 1958, popularised by Pascal), although there are many other notations in use. In some languages the symbol used is regarded as an operator (meaning that the assignment statement as a whole returns a value) while others define the assignment as a statement (meaning that it cannot be used in an expression).
Assignments typically allow a variable to hold different values at different times during its life-span and scope. However, some languages (primarily strictly functional) do not allow that kind of "destructive" reassignment, as it might imply changes of non-local state. The purpose is to enforce referential transparency, i.e. functions that do not depend on the state of some variable(s), but produce the same results for a given set of parametric inputs at any point in time. Modern programs in other languages also often use similar strategies, although less strict, and only in certain parts, in order to reduce complexity, normally in conjunction with complementing methodologies such as data structuring, structured programming and object orientation.

View More On Wikipedia.org
  1. P

    Determined to finish off my assignment

    Determined to finish off my assignment! Firstly, it's 2:50 am here and I'm NOT going to sleep until I finish this assignment off! I have few remaining ones and I'd be glad if someone could help me out so I can go to sleep... Please consider this question(and the one I posted below)...
  2. P

    Stuck in assignment due tomorrow(in fact this morning)

    I don't know if there's anyone who bother to answer my questions but still let me try.. If function f:R^2-->R is f(x,y)=0 if (x,y)=(0,0) and xy^2/(x^2+y^2) otherwise, then prove that f is not continuous at (0,0) Supposed to be easy but my brain is dead right now for this.. it's multivariable...
  3. P

    Assignment on NOS: Help Needed for Physics Behind Automotive System

    hey, i have been surfing the net for quite some time now and haven't been able to find any infomation of the physics behind nitrous oxide system for use in cars. i was wondering if there would be the slight chance of somebody out there maybe able to help me. this may appear to be a wasteful...
  4. R

    Finding BJT Systems for University Physics Assignment

    hai..i am just a univercity student..i am 1st year only... have something to ask..hope you all can help.. i have to find any system that use BJT(bipolar junction transistor) in its circuit.draw the circuit diagram and explain details how the BJT operates in the circuit... may i ask how to get...
  5. N

    Complex Number's Assignment (From my signals class)

    Q1. If j = square root of - 1 what is square root of j ? what I did was : Plug in the value of j in square root of j and came up with -1 to the power of 0.25. Is this right. Looks like this wrong. Q2. Given a complex number w = x + jy, the complex congugate of w is defined in...
  6. B

    How to prove gluon has this quantum number assignment?

    [URGENT]How to prove gluon has this quantum number assignment? From PDG booklet, for gluon, I^G(J^{PC}) = 0(1^-). My questions are: 1. How to prove its P=-1? 2. Why C parity and therefore G parity are not well-defined for a gluon? Is it because gluon have nothing to do with...
  7. S

    Summer Assignment - resulting slick

    Ive seen questions like this one done here before but I don't think I am understanding this well. The question is: Suppose 300 cubic meters of oil is spilled into the ocean. Find the are of the resulting slick, assuming that it is one molecule thick, and each moelcule occupies a cube .50 um...
  8. D

    Exploring the Physics of Top Gun: Analyzing the Flight Scenes and Landings

    Hello, I am a new user and in Dire need of some help. I am currently entering my senior year of High School. I am enrolled in an Honors Introductory Physics course, and for our summer assignment, are required to analyze a movie, determine four scenes of the movie, and explain the physics of the...
  9. D

    What Did Ancient Civilizations Discover About the Universe Before 3000 BC?

    Gday, I'm currently doing a major yr 11 assignment on cosmology for physics. One of the questions in this assignment was about the historical developments of various models of the universe over time. I've mentioned the geocentric and heliocentric models but the question also asks about the...
  10. R

    Measuring Distance - Parallax Assignment HELP

    :confused: Hi everyone. I have this assignment whereby I need to use the parallax method to calculate the distance to a pole from a base line on our school field. I am kind of confused as to how I can apply the parallax method to do this on our assessment day. We know that on one end...
  11. P

    Assignment from my biology teacher on karyotypes

    hi everyone. I recently got an assignment from my biology teacher on karyotypes. i am asked to pair up the chromosomes together and state its sex. But at the end i ended up with 23 paired chromosomes and 1 extra big chromosome. Can anyone tell me what is wrong with this karyotpye? Thanks in...
  12. M

    What are the steps for solving Maxwell's laws assignment?

    hello here's the paper. http://www.physics.utah.edu/~rprice/00_2220/collab10.pdf for the first part am i right in assuming that E flux is present only through the LH faces? and that i need to double integrate E first with respect to x from zero to L and then with respect to z fom 0...
  13. C

    Could use some, no, a LOT of help on my arrays assignment (C)

    Here's the project sheet. it's due tomorrow btw "Write a program to input, compute, and display various statistics for a list of test scores of up to 30 positive test scores of type double. You shall input an array with the following values as one of your test cases (use -1 as a sentinel...
  14. T

    Assignment Help, Combustion Engine

    Hello, I have been assigned to do an information search on the Combustion Engine. I have to find 5-10 articles detailing how combustion engines incorporate physics principles. I have looked around for articles but haven't found much. What principles are incorporated in the combustion engine...
  15. M

    IP Address Assignment: Can Two PCs Share Same IP?

    can we assign the same ip address to two different PC's ? if so then how does it work when sending or receiving packets?
  16. K

    Calculating Distance: Solving a Velocity Problem with Runners A and B

    I just transferred to UMD and want to do well in this course because I need a C or better to get into my major (Psychology). So any help on the problem would be much appreciated. I got through most of them fine except this one. I am stumped. :-p 1. Runner A is initially 4.0 mi west of a...
  17. S

    Capa Assignment- Rotational Motion

    Hello, If anyone out there could help me with this problem it would be much appreciated. The problem is on rotational motion and it states: A proposed space station includes living quarters in a circular ring 52.0 m in diameter. At what angular speed should the ring rotate so the occupants...
  18. B

    Creating an Egg Drop Device for Physics/Engineering Assignment

    First of all I would like to apologize if I am posting in the wrong forum. I couldn't really decide if this belonged in the general physics, homework, or engineering forums since it involves principles of physics, is technically an assignment, and also has to do with engineering. Anyways...
  19. T

    Help with Part B and C of Assignment

    I don't have any idea on part b and c. Anyone would show me how to do them?
  20. S

    Grade 8 Antarctica Assignment: Proving Special Flora & Fauna Adaptation

    Hey there, I have to do a grade 8 assignment on Antarctica, and prove that this quote is correct: While Antarctica is a difficult place for plants and animals to adapt, there are special flora and fauna found there. I have to also research cold deserts and the adaptation of at least...
  21. C

    Simple Harmonic Motion assignment

    Hi, I'm having a few problems with an assignment. Here is the question, and the progress that I've made so far. (If you can call it progress... ) Q) A 500g cylinder of base area a=20cm^2 and height h=30cm is floating upright in water. A 50g mass resting on top of the cylinder is suddenly...
  22. B

    I have this assignment from writing class

    I have this assignment from writing class that needs me to interview successful college students. Help I don't have time to do interview... can you guys give me some answers?! THANK YOU VERY MUCH! 1 WHEN DO YOU EXPECT TO GRADUATE AND WHAT IS YOUR MAJOR? 2 WHAT IS YOUR DEFINITION...
  23. K

    Stuck on Physics Assignment: Finding Force Required to Move Block Up Wall

    Hi all, I'm in my first year of university physics (mechanics and waves) and am stuck on an assignment question. The question itself is not complicated, but I feel as though I'm skipping over something important. The question is: A 3.8 kg block is pressed against a vertical wall by a force...
  24. S

    Assignment On Poly Crystalline Silicon Farication Process

    Hey Guys I Have Assignment On Poly Crystalline Silicon Farication Process Plzzzz Tell Me About That And Tell Me The Website If U Have Any Thanks.
  25. J

    Assignment on human karyotypes

    Hi, I'm currently working on a bio assignment on human karyotypes and I've come across two questions that I've been researching on, but had no luck so far. 1) Why in some karyotype charts is the X chromosome(s) placed at the end of row 3 while the Y chromosome at the end of row 4? my guess is...
  26. D

    Assignment about Galileo and his contributions to science

    hi I am doing an assignment on Galileo in which i have to disscuss and evaluate this quotation: "One of Galileo's greatest contributions to science was the establishment of the scientific method-that is investigation through experiment" Ive done some stuff on the scientific method but i also...
  27. H

    What is the value of c that makes f(x) continuous on the entire real line?

    Determine the value of c so that f(x) is continuous on the entire real line if f(x)={ x^2, x<_3 (less than or equal to) { c/x, x>3 I've been trying by just guess and check, but I have absolutely NO idea! Please help!
  28. P

    Banking corners Problem regarding assignment

    hey guys I am having trouble with a banking problem i keep getting a sin theta value of 2 therefore i can't find the angle required, any ideas where I am going wrong, below is a copy of my formulas Fnet = (MV^2) / R Fnet = (1000*16.67^2) / 10 Fnet = 27788.89 N Fc = Mac Ac = V^2 /...
  29. D

    How Do I Calculate Theoretical Charge and Discharge Times in RC Circuits?

    I've been set the following assignment on RC circuits that I thought I understood. Turns out I don't: http://www.geocities.com/danielessex/images/electronicsmain.jpg I understand what is happening in the circuit and what it is asking me to do but I don't really know how to go about it...
  30. P

    How Do You Calculate Force on a Car Impacting a Tree at 60km/h?

    Hello everyone, Im new to this forum so I am not entirely sure how it works, I have a physics assignment in which i must analyse kinematics, impulse and momentum, friction, energy and circular motion, I am currently working on a car design and i was wondering if anyone could tell me the...
  31. J

    Help on Linear Algebra Assignment Due Next Week

    This one, prove it please, I have 5 problems in linear algebra class as an assignment which I have to hand in next week's Monday and I don't know how to solve this problem, the last one; A^-=\frac{(A_j_k)^T}{det(A)}=\frac{(A_j_k)}{det(A)} Thank you
  32. A

    Need help with assignment force question

    I am stumped on this question. Can anyone advise? The electric charge of an electron is -1.6 X 10 to the -19 power C. What is the force exerted between two electrons separated by one meter?
  33. J

    I wiht my assignment on the physics of a drum

    hey, i am in year 10 and i am doing an assignment on the physics of drums. if anyone knows anything that can help me that would be great. thanks. jack (jackio_14@hotmail.com)
  34. S

    Telomere assignment for biology

    Hi, I'm doing a telomere assignment for biology, and i have a few questions. 1) are they called "telomers" or "telomeres"? 2) when and by whom were they discovered? (i've looked everywhere!) Thank, you. and i must say, those things are fascinating!
  35. D

    Variation in Real World Examples: Types, Features, and Relationships

    URGENT maths - variation assignment HEy got to make a poster and contain at least 3 'real' examples of variation. Direct, inverse, joint, part variation should be featured. for each example show -the type of variation, - an explantion of that particular type of variation, and the...
  36. M

    Understanding the Inverse Square Law in Planetary Motion

    hey guys, im doing an investigation into the accuracy of the "inverse square law" (any two particles with experience a mutually attractive force yadda yadda yadda) anyway, we have to find various informaiton about the planents. (orbital velocities, centripetal accelerations, etc.) my...
  37. J

    Mechanics Assignment Help: Find Tension & Friction Coefficients

    Hi, I am going to submit one of those MasteringPhysics online assignments soon and I was wondering if anyone would be so kind as to check my answers. http://session.masteringphysics.com/problemAsset/1010969/21/MLD_2l_1.jpg The question is to find the tension in the upper and lower ropes...
  38. Math Is Hard

    C++ assignment involving classes

    Ugh! I'm working on my last homework assignment and I can't seem to even get off the ground. :cry: The teacher created a class for rational numbers, and now we are working on some functions for a polynomial class which uses arrays of rationals from his class. My polynomials are arrays of...
  39. Math Is Hard

    C++ assignment with .mp3 files

    OK, so I've got this wacky homework assignment that involves reading stuff out of a .mp3 file. Just to get started, I am attempting to read the first four "bytes" of the file and put them into an (unsigned char) array. I am not really sure if I am reading from the file or not - I can't tell from...
  40. G

    Electric Charge and Help Putting an Answer Into CAPA Assignment

    I'm using CAPA now for online homework and I seem to be having some trouble inputting an answer. Last semester I used webassign which I think is so much easier. Anyways, the first question was "Two small spheres with charges 7 and 6 coulombs are held 9 m apart. Find the magnitude of the force...
  41. N

    Bridge Building with Pasta Assignment

    Hey, my physics teacher handed us this assigment and said have fun. He didn't explain what to do or go over how bridges work. So I was wondering if anyone here has done something similar to this. I believe I can work out the design, but what kind of pasta and glue would be most appropiate to get...
  42. D

    Assignment due in less than 1 hr

    Hey ppl, sorry I was just wondering if anyone knew how to do the question i posted earlier(TWO BLOCKS AND TWO PULLEYS), as I have to submit it and cannot figure it out still!? Thanks...
  43. D

    What Should Be Included in a Presentation on Aristotle's Logic?

    I was hesitant to post this thread in this specific forum. Although i do not think it would be appropriate in the more physics-centered Homework Help forum. I am creating an outline (as well as a précis) for a short 10 minute presentation i have to have finished in a couple of days. The topic...
  44. A

    Wind Car Theory .for assignment

    Wind Car Theory...for assignment... I am a student and i have to explain the wind car theory. I really need help. I need to come up with equations and real explanation. I'd be really happy if you could help me. You can email me at : ngkho@yahoo.com.hk Sorry again for posting my message here...
  45. S

    How Should Cable Be Laid to Minimize Costs Across a River?

    An underground telephone cable is to be laid btwn 2 boathourses on opposite banks of a straight river. One boathouse is 600 meters downstream from the other. The river is 200 meters wide. If the cost of laying cable is $150 per metere underwater and $80 per metere on land, how should the...
  46. K

    Research Assignment help The Postulation and proof

    soloved :P problem soloved, thanks anyway
  47. L

    Reviewing a Failed Assignment: Evaluating the Limit

    I’m reviewing an assignment that didn’t go so well Evaluate limit lim x->-1 (1/2+(x/(x+3))/(x+1) I reduced to (1+2x)/2 = -1/2 I originally had x-1/x=2 but i redid the problem as above Is this correct?
  48. H

    Organizing Physics Formulas for Assignment: Maximizing Marks

    i have a few formula for my physics assignment but i want to know the best way to set it out and what other formula i can use. i already have the formula f=m*a and a=(v-u)/t. i just really need the marks
  49. M

    Help Solve Integration Theory Assignment

    Guyz please help me ! hey! Could any of u please help me with this question. Its for my general integration theory assigment. 'Use an argumetn by contradiction to establish the following claim: If f is continuous on R and [tex]\int |f|= 0,then f = 0.[\tex] thanx
  50. M

    Cost-effective design for fencing and partitioning a rectangular ranch field?

    hi i have two homework assignment I'm kinda stuck on they are very similar i was hoping someone could help me... 1) A rancher wants to fence in an area of 1,900,000 square feet in a rectangular field and then divide it in half with a fence down the middle parallel to one side. What is the...
Back
Top