Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 The following 3 debugging assignments begins with some comments (lines that begin with 2 slashes) that describes the program. Examine the pseudocode that

image text in transcribed
image text in transcribed
image text in transcribed
Part 1 The following 3 debugging assignments begins with some comments (lines that begin with 2 slashes) that describes the program. Examine the pseudocode that follows the introductory comments. Discover the syntax and logic errors and fix the pseudocode in the area labeled, Correct the pseudocode below. Pseudocode Debugging Exercise 1 // This pseudocode segment is intended to compute and display // the average grade of three quizzes start Declarations num quiz1 num quiz3 num quiz3 num average output "Enter score for quiz 1" input quiz1 output "Enter score for quiz 2" input quiz2 output "Enter score for quiz 3 input quiz3 average = quiz1 + quiz2 + quiz3/3 output "Average is ", answer end Pseudocode Debugging Exercise 2 // This pseudocode segment is intended to compute and display // the cost of home ownership for any number of users // The program ends when a user enters 0 for the mortgage payment start Dedarations num mortgagePayment num utilities num taxes num maintenance num total startup while mortgagePayment not equal to 0 Mainloop0 endwhile finishUp stop startUpl) output "Enter your mortgage payment or 0 to quit" Input mtgPayment return mainloop) output "Enter utilities" Input utilities output "Enter taxes input taxes outout "Enter amount for maintenance Oro stop startUp) output "Enter your mortgage payment or O to quit" input mtePayment return mainLoop() output "Enter utilities" input utilities output "Enter taxes" input taxes output "Enter amount for maintenance" input maintenance total = mortgagePayment + utilities + taxes + maintenance output "Total is", total return finishup) output "End of program" return

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

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

9. System creates a large, diverse talent pool.

Answered: 1 week ago