Program design
- Necessary code and banner comment
- class
- declare constants
- main method
- declare variables
- initialize all variables including first valid input
- ending condition
- count the appropriate color
- get next valid input
- output results
More help for individual parts (scroll down to find them)
- variables. You need one for each color.
- initialization. All counters must each be set to zero.
- computing percentage. You need to count the total number of values inputted.
- getting valid input. Similar code has been written in class. Refer to that code!
This topic: CenterForComputing
> WebHome >
Syllabi >
CSC121SylS2023 >
CSC121S2023Lab03 > CSS121S2023Lab3H1
Topic revision: r1 - 2022-12-29 - cathybareiss