Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

DEBUGe2-02 // This pseudocode segment is intended to compute and display the average grade of three tests for any number of students The program executes

image text in transcribed
DEBUGe2-02 // 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 test1 num test2 num test3 num average housekeeping) while test1e mainLoop() endwhile endofJob() 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 (testi+ test2 + test3)/3 output "Average is ", average output "Enter score for test 1 or a negative number to quit" input tesst1 return endofJob() output "End of program" return Page 1 DEBUGe2-02 // 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 test1 num test2 num test3 num average housekeeping) while test1e mainLoop() endwhile endofJob() 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 (testi+ test2 + test3)/3 output "Average is ", average output "Enter score for test 1 or a negative number to quit" input tesst1 return endofJob() output "End of program" return Page 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

3rd Edition

0760049041, 978-0760049044

More Books

Students also viewed these Databases questions