Question: determine the problem and fix the errors This pseudocode is intended to determine whether students have // passed or failed a course; student needs to

determine the problem and fix the errors

This pseudocode is intended to determine whether students have

// passed or failed a course; student needs to average 60 or //

more on two tests.

start

Declarations

num firstTest

num secondTest

num average

num PASSING = 60

while firstTest not equal to 0

output "Enter first score or 0 to quit "

input firstTest

output "Enter second score"

input secondTest

average = (firstTest + secondTest) / 2

ouput "Average is ", average

if average >= PASSING then

output "Pass"

else

output "Fail"

endif

endwhile

stop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!