subject
Engineering, 10.12.2019 20:31 ggpro4life3000

// a high school is holding a recycling competition, // and this program allows a user to enter a student's // year in school (1 through 4) and number of cans collected // for recycling. data is entered continuously until the user // enters 9 for the year. // after headings, output is four lines -- // one for each school year class. start declarations num year num cans num size = 4 num quit = 9 num collectedarray[size] = 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] = collectedarray[year] + 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] year = year + 1 endwhile stop

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Steel is coated with a thin layer of ceramic to protect against corrosion. what do you expect to happen to the coating when the temperature of the steel is increased significantly? explain.
Answers: 1
question
Engineering, 04.07.2019 18:10
Which of the following controllers anticipates the future from the slope of errors over time? a)-proportional b)-on/off c)-integral d)-derivative.
Answers: 2
question
Engineering, 04.07.2019 18:20
Inadequate stores control is not an obstacle to effective work order system. (clo4) a)-true b)-false
Answers: 3
question
Engineering, 04.07.2019 18:20
Derive the correction factor formula for conical nozzle i=-(1+ cosa) and calculate the nozzle angle correction factor for a nozzle whose divergence hal-fangle is 13 (hint: assume that all the mass flow originates at the apex of the cone.
Answers: 3
You know the right answer?
// a high school is holding a recycling competition, // and this program allows a user to enter a st...
Questions
question
English, 09.09.2019 22:30
Questions on the website: 13722363