1 / 9

The Role of Variables

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.

chaka
Download Presentation

The Role of Variables

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Role ofVariables By Rishi Magudia

  2. 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.

  3. 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

  4. 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

  5. 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.

  6. Gatherer The value of a gatherer accumulates all the values gone through so far.

  7. Transformation used to store the result of a calculation involving more than one variable

  8. Follower used to keep check of a previous value of a variable, so that a new value can be compared

  9. Temporary A variable used for storing something for a very short period of time

More Related