LESSON+1

The **get** statement **inputs** a value into a program **from** the **keyboard**. Thus, the get statement allows the user to interact with the program by providing data for the program to use. When a get is encountered in program execution, the computer waits for the user to type a value (or values). When the return key is pressed, the value (s) are entered into the memory locations of the variables and the program continues its execution. For example:
 * //Sequential structures: get statements//**

 var name: string  put "What is your name?"  get name  put "Greetings", name

Try the above program. Type it in and click run. What happens?

You now have all the information you need to complete the following assignment.

//** Task: **// **You will need to know the following concepts: var, get, put, assignment statements, and procedures. To attempt Part 3, you will have to read ahead**
 * 1) Create a program which calculates the area of a triangle where the base and the height of the triangle are user derived (derived = provided by).
 * 2) Modify 1 to calculate the area of a circle, where the diameter of the circle is user derived
 * 3) Modify 2 using the locate command to centre the output on the screen.
 * 4) Modify 2) outputting a graphic of the geometric shape specified.