This pseudocode segment is intended to describe determiningwhether you have passed or failed a course based on the averagescore of two classrooms test. (Find the "bugs" in thispseudocode and correct it.) input midtermGrade input finalGrade average = (midterm + finalGrade) / 2 print avg if average >= 60 then print "Pass" endif else print "Fail" This pseudocode segment is intended to describe determiningwhether you have passed or failed a course based on the averagescore of two classrooms test. (Find the "bugs" in thispseudocode and correct it.) input midtermGrade input finalGrade average = (midterm + finalGrade) / 2 print avg if average >= 60 then print "Pass" endif else print "Fail"
Explanation / Answer
average = (midterm + finalGrade) / 2 should be average = (midtermGrade + finalGrade) / 2