Lesson 16

Getting Started (Continuation of Programming, continued)

Where are the programs we created in Lesson 15? They are in the main folder and the main folder is in the MCS memory area. MCS data is stored in the Other Data folder inside a vcp file.

Before beginning the programming parts of this lesson, we will create a new vcp file. But creating a new vcp file, we need the name of our current vcp file.

(A) To find the name of your current vcp file:
Right click on the ClassPad Manager and select Recent Documents:

(B) To create a new vcp file:
Please create a new vcp file using your first and last name.

(C) What did we just do?

(D) Open the Recent Document list again:

Part I

We will begin this lesson by trying to figure out the For Next loop! We have already looked at the If Then control statement. The For Next control statement is another way to control the flow of our program.

1. The ClassPad's Syntax and the For Next Loop

2. Using Step in a For Next Loop and a Counter

Counters are often used in programming. To make a counter, we initialize it at the beginning of the program and then add one to it each time it is encountered.

3. Stepping Backwards

We can also step backwards by changing the step value to a negative.

4. Summing Numbers

Let’s try summing the numbers from 1 to 100 using the Loop program.

Button Review


Part I


Practice Exercises

Before beginning the practice exercises, open a word document, type in the following information and then save it as Lesson16 in your CASIO folder within My Documents:

  • Date: (enter today's date)
  • To: (put your instructor's name here)
  • From: (put your name here)
  • Re: Lesson 16
  1. In this practice set, we will modify the Loop program a few times.
  2. Change the Loop program to find the sum of the even numbers between 1 and 10.
  3. Run your program. With your program output showing, get a screen capture. Paste it into your Lesson16 document (under a title of PART I).
  4. Change the Loop program to find the sum of the even numbers between 1 and 1000..
  5. Run your program to make sure it works.
  6. With your program output showing, get a screen capture. Add two blank spaces following the first screen capture and then paste this one.
  7. Change the Loop program to find the sum of the odd numbers between 1 and 1000.
  8. Run your program to make sure it works. [Hint: 1st try running it from 1 to 5; the sum should be 1+3+5 or 9.]
  9. With your program output showing the sum of the odd numbers from 1 to 1000, get a screen capture. Add two blank spaces following the second screen capture and then paste this one.