Computers and Technology

// A high school is holding a recycling competition// This program allows a user to enter a student's// year in school (1 through 4) and number of cans collected// Data is entered continuously until the user enters 9// After headings, output is four lines --// one for each school year classstart Declarations num year num cans num SIZE = 4 num QUIT = 9 num collectedArray[SIZE] = 0, 0, 0, 0 string HEAD1 = "Can Recycling Report" string HEAD2 = "Year Cans Collected" output "Enter year of student or ", QUIT, " to quit " input year while year <> QUIT output "Enter number of cans collected " input cans collectedArray[year - 1] = collectedArray[year - 1] + cans output "Enter year of student or ", QUIT, " to quit " input year endwhile output HEAD1 output HEAD2 year = 1 while year <= SIZE output year, collectedArray[year - 1] year = year + 1 endwhilestop

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:00, joedawg50
What is added to the < meta > tag to describe the encoding type?
Answers: 1
image
Computers and Technology, 22.06.2019 15:30, tfornwalt4390
Melissa needs to add a topic to an email that she will send to her teacher. choose the name of the field where she should type her topic.
Answers: 2
image
Computers and Technology, 23.06.2019 13:50, mrfishyyyy
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
image
Computers and Technology, 23.06.2019 18:30, janny48
How often does colleges update the cost of attendance on their website? . a)every two years b) every four years c) every year d) every semester
Answers: 1
Do you know the correct answer?
// A high school is holding a recycling competition// This program allows a user to enter a student'...

Questions in other subjects:

Konu
Mathematics, 06.01.2021 01:00
Konu
Mathematics, 06.01.2021 01:00
Konu
Mathematics, 06.01.2021 01:00
Konu
Mathematics, 06.01.2021 01:00