subject

// 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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:30
I'll mark brainliest if answered right! with which feature or menu option of a word processing program can you make an image like this? you can get this image using the option of a word processing program.
Answers: 1
question
Computers and Technology, 24.06.2019 06:30
Ineed to know the anwser to all these questions
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
Which feature of a blog to restore and retrieve older post
Answers: 3
question
Computers and Technology, 24.06.2019 11:00
Under the home tab, where can a user find options to change the bullet style of an outline? in the slides group in the font group in the paragraph group in the drawing group
Answers: 1
You know the right answer?
// A high school is holding a recycling competition// This program allows a user to enter a student'...
Questions
question
Mathematics, 22.01.2020 03:31
question
Mathematics, 22.01.2020 03:31
question
History, 22.01.2020 03:31
Questions on the website: 13722363