90 likes | 242 Views
The Role of Variables. By Rishi Magudia. Fixed Value. A variable that is initialized at the beginning of the program and isn’t changed thereafter. Is a constant. For example the number of array elements in use. Stepper.
E N D
The Role ofVariables By Rishi Magudia
Fixed Value A variable that is initialized at the beginning of the program and isn’t changed thereafter. Is a constant. For example the number of array elements in use.
Stepper • A variable used to move through an array or other data structure, often heading towards a fixed value and stepping through elements in an array. Systematic and predictable
Most recent holder A variable used to record the last thing inserted by a user or a the latest value being read from an array
Most wanted holder The value of a most-wanted holder is the "best" or otherwise the most-wanted value out of the values gone through so far. Example in this case, the higher the number the better it is.
Gatherer The value of a gatherer accumulates all the values gone through so far.
Transformation used to store the result of a calculation involving more than one variable
Follower used to keep check of a previous value of a variable, so that a new value can be compared
Temporary A variable used for storing something for a very short period of time