Others
Assessment
CenterForComputing
ChatGPT
Search
Close
Log in
Register
CenterForComputing
You are here:
CenterForComputing
»
Syllabi
»
CSC121SylS2023
»
CSC121S2023Lab03
»
CSS121S2023Lab3H1
Program design
29 Dec 2022 - 12:20
|
Version
1
|
UnknownUser
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!
Attachments
($count)
Show options
Search:
Sort by:
Name
Date
Author
Size
Type
Results per page:
6
12
24
48
all
Display hidden:
More actions
Create link(s)
Embed
Download
Hide
Unhide
Move
Delete
0
attachment(s)
Select all
Clear all
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback
This website is using cookies.
More info
.
That's Fine