Lesson 15

Getting Started (Introduction to Programming, continued)

We will begin this lesson by creating a simple program. Once you learn how to find commands and understand the ClassPad’s syntax (style) you will be able to create interesting programs.

When we write a program, the text we type in is called code. When we run a program, our code is followed exactly. In our programs, we are telling the ClassPad exactly what to do and the ClassPad will do exactly what we tell it to do. This is why entering text in the correct format is so important.

If you are interested in learning more about a particular command, please try searching the ClassPad’s User Manual.

Part I

In this part, we will create a simple program.

1. Naming a Program

2. Entering Code to Display a Message

3. Running a Program

4. Editing a Program

5. Editing a Program (Continued)

6. Using the Locate command to Print

The Locate command lets us place output at a specific (x,y) location on the screen. For example, Locate 10, 20, “abc” places abc over 10 and down 20 from the upper left corner. We can go as high as 290 for each location (horizontal and vertical).

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 Lesson15 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 15
  1. Begin a new program named Today by clicking and inputting the program name.
  2. Input code to display the word Today in the upper left corner of the display window. Remember to input the line of code needed to first clear the window.
  3. Run your program. With Today displaying in the output window, get a screen capture. Paste it into your Lesson15 document (under a title of PART I).
  4. Add a line of code to display is Tuesday (or whatever day of the week it is for you) on the next output line to be displayed.
  5. Run your program. With your new output showing, get a screen capture. Add two blank spaces following the first screen capture and then paste this one.
  6. Add a line of code to display Today is Tuesday (or some other day name) so that it is centered in the output window. Try to center it, but it does not have to be perfect!
  7. Once you are happy with your centering, get a screen capture of your output window. Add two blank spaces following the second screen capture and then paste this one.