// This pseudocode is intended to determine whether students have

// passed or failed a course based on the average score of two

// tests. Student needs 60 average or better to pass.

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

Respuesta :

Answer:

I guess you are asking for problems in this psuedocode.

- Your 'end if' statement is incomplete. It should be something like 'endif firstTest = 0' .

- Rest of the code seems fine.