1. Print and read the lesson. (Punch, staple, put in your binder.) Arrays
2. Study the array flowchart: Total
of array
3. Run each of the programs from the lesson, work with the flowchart
if one is provided:
Sort 3 numbers with
scalar variables
Sort 3 numbers with
an array
Month1: name and number
of days in each month
Julian Date: day of the year
Julian date with loop
Fast food: menu driven program
with one choice
4. Try writing a program to match the flowchart.
5. Add to the fast food program.
To get the most out of these programs
- Copy the program, paste it into your C++ compiler and run it.
- Experiment with it: make little changes and see what happens, make
sure you understand it.
- Erase it - now try to write it without looking at your notes!
|