Advertisement
Online Test Banks
Score higher
See Online Test Banks
eLearning
Learning anything is easy
Browse Online Courses
Mobile Apps
Learning on the go
Explore Mobile Apps
Dummies Store
Shop for books and more
Start Shopping

The Repeat . . . End and For . . . End Commands on the TI-84

The While . . . End and Repeat . . . End commands for the TI-84 Plus graphing calculator are similar, but opposite. They are similar because they have the same structure.

And they are opposite because the While . . . End command executes a block of commands while the specified condition is true, whereas the Repeat . . . End command executes a block of commands until the specified condition is true.

In a Repeat . . . End command, if the condition following the Repeat command is false, the program executes the commands between Repeat and End and then returns to the Repeat command to see whether the condition following it is still false.

If it is, the program will again execute the commands between Repeat and End and then return to the Repeat command to see whether the condition following it is still false. If the condition following the Repeat command is true, the program skips the commands between Repeat and End and then moves on to the next command in the program.

The structure of the For . . . End command appears in the first picture. When the For command is first encountered by your program, it assigns the variable var the value in start and then executes the commands appearing between For and End (commands 1). It then adds the increment inc to the variable var. If var is less than or equal to the value in stop, the process is repeated. If it isn’t, the program moves on with the program by executing the command appearing after End (command 2).

image0.jpg

An example of using the For . . . End command appears in the second picture. The results of executing this program appear in the third picture.

  • Add a Comment
  • Print
  • Share
blog comments powered by Disqus
Advertisement
Advertisement

Inside Dummies.com

Dummies.com Sweepstakes

Win an iPad Mini. Enter to win now!