Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

a. Watson Elementary School contains 30 classrooms numbered 1 through 30. Each c

ID: 3632795 • Letter: A

Question

a. Watson Elementary School contains 30 classrooms numbered 1 through 30. Each classroom can contain any number of students up to 35. Each student takes an achievement test at the end of the school year and receives a score from 0 through 100. Write a program that accepts data for each student in the schoolstudent ID, classroom number, and score on the achievement test. Design a program that lists the total points scored for each of the 30 classrooms.

b. Modify the Watson Elementary School program so that each classroom's average of the test scores is output, rather than each classroom's total.

Explanation / Answer

housekeeping()
for count = 0 to 30 step 1
     output “Enter Room number”
     input classroom_number[count]
     output “Enter total students in the room”
     input totalstudents
     for j = 0 to totalstudents step 1
        output “Enter Student ID”
        input studentID[j]
        output “Enter Student Score”
        input test_score
        total += test_score;
    endfor
endfor
return

housekeeping()
for count = 0 to 30 step 1
   output “Enter Room number”
   input classroom_number[count]
   output “Enter total students in the room”
   input totalstudents
for j = 0 to totalstudents step 1
     output “Enter Student ID”
     input studentID[j]
     output “Enter Student Score”
     input test_score
     total += test_score;
   endfor
endfor
retrun

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote