This pseudocode segment is intended to describe computing youraverage score of two classroom test. (Find bugs and correctthis pseudocode). input midtermGrade input finalGrade average = (inputGrade + final) / 3 print average This pseudocode segment is intended to describe computing youraverage score of two classroom test. (Find bugs and correctthis pseudocode). input midtermGrade input finalGrade average = (inputGrade + final) / 3 print average input midtermGrade input finalGrade average = (inputGrade + final) / 3 print average
Explanation / Answer
average = (inputGrade + final) / 3 should be average =(midtermGrade + finalGrade ) / 2 . The problems were, it wascalling "midtermGrade" "inputGrade" and it was calling "finalGrade""final" and it needed to be using the exact same names. Also, itwas dividing the sum by 3 when there were only 2 elements beingaveraged.