Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In the two debugging exercises below can someone point out to me where errors are and what Correct coding is to fix the errors. //
In the two debugging exercises below can someone point out to me where errors are and what Correct coding is to fix the errors.
// Program asks students for score on test and displays corresponding message - at least 95 is Excellent, at least 88 is Very good, at least 70 is Passing, and anything lower than 70 is Failing. At end, total number of scores processed is displayed start get Ready.(). Declarations num score num SIZE = 4 output mum CUT_OFFS [SIZE] = 95, 88, 70, 0 "Enter score or a string MSGS[SIZE] = "Excellent", negative number to "Very good", "Passing", quit" "Failing" num sub mum count input sub get Ready.U. return Yes 02 findMessage.(). finishUp.(). No count, student scores finishUp.() processed" return Stopem i= CUT_OFFS [SIZE] :1 m "Enter next score or a negative number to quit" m MEGS [SIZE]// Program asks students for score on test and displays corresponding message - at least 95 is Excellent, at least 88 is Very good, at least 70 is Passing, and anything lower than 70 is Failing. At end, total number of scores processed is displayed. start Declarations num score num SIZE = 4 num CUT OFFS [SIZE] = 95, 88, 70, 0 string MSGS (SIZE] = "Excellent", "Very good", "Passing", "Failing" num sub num count getReadz.U score > 02 No finishUp.U OU STOR Yes findMessage. getReady.( SHERE "Enter score or a negative number to quit" input sub finishUp.. count, processed" Keturn QUERUE student scores return
Step by Step Solution
There are 3 Steps involved in it
Step: 1
To debug the given pseudocode we need to identify the errors and provide the corrected pseudocode Lets go step by step Errors in the Original Pseudoco...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started