Hello Computer Science: Hello C++: Arrays

At the end of this lesson you will know what an array is and how to use it in a program. You will be able to write a program that uses arrays.

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!

All of the computer_science activities with description in Arabic, 汉语, English, Français, Deutsch, Indonesian, Italiano, 日本語, Portuguêes, Русский, Español,


Copyright © Hello World Publications. All rights reserved worldwide.

hello-world.com
Privacy
Policy

Site map

Hello-World