CH 6: Debug Files 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 year = year + 1 endwhile stop
CH 6: Debug Files 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 year = year + 1 endwhile stop
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
Expert Answers to Latest Homework Questions
Q: " Representative and democratic, Westminster parliamentary government is not " Assess.
Q: 8. A three-stage fully interconnected
switching network is to connect 600 incoming
trunks to 100…
Q: A 19-year-old woman visits the clinic accompanied by her family. She reports episodes of
binge…
Q: ormal text
Helvet...
1-12
+BZUA
Reading Questions:
1. In his speech asking for a declaration of war…
Q: What was problematic about the treaties signed by European explorers in Africa?
The treaties…
Q: Please correct answer and don't used hand raiting
Q: Which European powers were involved in territorial disputes over the Congo region?
Italy and…
Q: If in an electronic spectrum we have the data of the central wave numbers corresponding to the…
Q: What was King Leopold II’s "Congo Free State"?
A personal territory claimed by Leopold in…
Q: How did Menelik II try to prevent European colonization of Ethiopia?
By writing a letter to…
Q: How did European powers respond to Menelik II’s letter?
They ignored his letter and continued…
Q: What was the main purpose of the Berlin Conference of 1884–1885?
Q: If the vibration spectra appear in the V-UV region, it is correct to express: the fundamental…
Q: a- Determine the minimum slab thickness to meet the ACI code requirements. (7 marks)
b- Check the…
Q: How did King Leopold II deceive other European powers regarding the Congo Free State?
By claiming…
Q: Please correct answer and don't used hand raiting
Q: Please correct answer and don't used hand raiting
Q: Please correct answer and don't used hand raiting
Q: what would this look like on a graph :If the market experiences oversupply, producers may reduce…
Q: Please correct answer and don't used hand raiting
Q: Please correct answer and don't used hand raiting