Question: DEBUG02-82 11 This pseudocode segment is intended to compute and display the average grade of three tests for any number of students The program executes
DEBUG02-82 11 This pseudocode segment is intended to compute and display the average grade of three tests for any number of students The program executes until the user enters a negative value for the first test score. start Declarations num testi num test2 num test3 num average housekeeping) while test )s e mainLoop() endwhile endof3ob() stop housekeeping() output "Enter score for test 1 or a negative number to quit" return mainLoop() output "Enter score for test 2 input test2 average (test1 + test2+ test3) /3 output "Average is ", average output "Enter score for test 1 or a negative number to quit input tesst1 return endofJob(O output "End of program return Page 1 DEBUG02-82 11 This pseudocode segment is intended to compute and display the average grade of three tests for any number of students The program executes until the user enters a negative value for the first test score. start Declarations num testi num test2 num test3 num average housekeeping) while test )s e mainLoop() endwhile endof3ob() stop housekeeping() output "Enter score for test 1 or a negative number to quit" return mainLoop() output "Enter score for test 2 input test2 average (test1 + test2+ test3) /3 output "Average is ", average output "Enter score for test 1 or a negative number to quit input tesst1 return endofJob(O output "End of program return Page 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
