Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Set appropriate constants for new requirements ( see below ) . Check for limits by describing code modifications in detailLoop ( ) . No pseudocode

Set appropriate constants for new requirements (see below). Check for limits by
describing code modifications in detailLoop(). No pseudocode needs to be written for
this problem.
Find the Bugs
1. Each code segment below starts with some comments (lines that begin with two slashes) that
describe the program. Examine the pseudocode that follows the introductory comments, then
find and correct all the bugs as specified in the homework assignment instructions file.
a.// This pseudocode is intended to determine whether students have
// passed or failed a course; student needs to average 60 or
// more on two tests to pass. Dont forget to use priming read
// prior to while loop.
start
// Declarations
num firstTest
num secondTest
string average
num PASSING =40
while firstTest not equal to 0
output "Enter first score or 0 to quit "
input firstTest

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

which of these is not considered a part of employee compensation

Answered: 1 week ago