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

Can someone please help me debug this code? Complete this assignment by clicking

ID: 3815374 • Letter: C

Question

Can someone please help me debug this code?

Complete this assignment by clicking the link to upload your shed assignment. Below you will see pseudocode, please debug the code (find the errors by copying and pasting the code in the textbox of the assignment dropbox (ink above) and make the correct changes to pseudocode. Please do not upload any documents, only copy and paste your final submission. //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 first num secondTest num average num PASSING = 60 while firstTest not equal to 0 output "Enter first score or 0 to quit" input first Test output "Enter Second score" input secondTest average = (firstTest + secondTest) /2 output "Average is", average if average greaterthanorequalto PASSING then output "Pass" else output "Fail" endif endwhile stop

Explanation / Answer

start
   Declaration
       num firstTest = 1
       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
           output "Average is", average
           if average >= PASSING then
               output "Pass"
           else
               output "Fail"
           endIf
       endwhile
stop