Answered step by step
Verified Expert Solution
Link Copied!

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.

imageimage
// 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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microeconomics An Intuitive Approach with Calculus

Authors: Thomas Nechyba

1st edition

538453257, 978-0538453257

More Books

Students also viewed these Programming questions

Question

What do you think your problem does to you?

Answered: 1 week ago

Question

Differentiate the function. r(z) = 2-8 - 21/2 r'(z) =

Answered: 1 week ago

Question

Calculate 6.6 % of $666.66.

Answered: 1 week ago