Lesson 16
Part III (Continuation of Programming, continued)
In this part we will modify your Loop program to use a parameter. The parameter will require the user to input a value called an argument that will be stored in the parameter before running the program. We will also learn how to run programs from within Main and eActivity. This part is easy!
1. Adding a Parameter

2. Using our Parameter to Control Looping

3. Running Programs from within Main

4. Running Programs from within eActivity
Part III
Practice Exercises
- In this practice set, we will modify the Loop program to require two parameters. One will be used to begin the loop and the other to end the loop.
- Open the Program application and then the Loop program for editing.
- Change the Loop program to require two parameters by changing the t to s,t.
- Edit the For To line to begin at s and end at t (i.e. start i at s instead of 1).
- Save and run your program using parameters of 3, 17.
- With your program output showing, get a screen capture. Paste it into your Lesson16 document (under a title of PART III).
- Open the Main application.
- Run your program using parameters of -10, 5.
- With your program output showing, get a screen capture. Add two blank spaces following the first screen capture and then paste this one.
- Open the eActivity application.
- Run your program using parameters of -10, 10.
- With your program output showing, get a screen capture. Add two blank spaces following the second screen capture and then paste this one.
I am sorry, but I need to review another way to identify the active vcp file and also have you backup your programs before we end the lesson.
- Please begin by opening the Exchange Window. [Hint: Right click on the ClassPad Manager emulator.]
- Click on the + sign in front of the Active Document folder.
- Click on your name so that its folders show.
- Next, double click on the folder named Other Data and then double click on the main folder. We have a lot of variables defined!
- Click on the + sign in front of the ClassPad Manager folder.
- Click on the + sign in front of CP101_Backup.
- Select your two programs. Hint: Select one, press the Ctrl key down and select the other.
- Drag the selected program’s to the main folder in CP101_Backup.

- Or, you can drag and drop the entire main folder to the Other Data folder in the CP101_Backup.
Part IV
Written Exercises
Please copy and paste the following questions into your Lesson16 document (under a title of Part IV) and answer them.
- How do you step backwards in a For Next loop?
- Describe two ways to identify which vcp file is active.
- What command do you use to display math in a natural format?
- Without running this program, what will be the programs output? Hint: Use pencil and paper.

Reflection Exercises
You have just completed the sixteenth lesson in ClassPad 101. In your spare time, please try writing other programs while the syntax is fresh in your mind. Please take a few moments to copy and paste the following three questions at the end of your Lesson16 document and answer them.
- Approximately how long did it take you to complete this lesson?
- Which activity did you enjoy the most?
- Did you find any part of this activity difficult to follow? If so, which part? Also, how did you overcome the difficulty?
Assessment 16: Continuation of Programming
- Checkpoint: Your word processed document, titled "Lesson16", should contain the following activities:
- Three screen captures from PART I
- One screen captures from PART II
- Three screen captures from PART III
- Four questions with answers and three reflection questions with answers from PART IV
- Submit your Lesson16 document to your instructor for grading. Once your lesson is submitted, your lesson for ClassPad 101 “Continuation of Programming ” is complete.