Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Once the called mainLoop() method is executed, where does it return, assuming there are no errors in the code? start Declarations num mortgagePayment num utilities

Once the called mainLoop() method is executed, where does it return, assuming there are no errors in the code?

start

Declarations

num mortgagePayment

num utilities

num taxes

num upkeep

num total

startUp()

while mortgagePayment not equal to 0

mainLoop()

endwhile

finishUp()

stop

startUp()

output "Enter your mortgage payment or 0 to quit"

input mtgPayment

return

mainLoop()

output "Enter utilities"

input utilities

output "Enter taxes"

input taxes

output "Enter amount for upkeep"

input upkeep

total = mortgagePayment + utilities + taxes + upkeep

output "Total is ", total

return

finishUp()

output "End of program"

return

A) before the startUp() method

B) between endwhile and finishUp()

C) The program exits completely

D) At the decision statement: while mortgagePayment not equal to 0

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

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

Question What integration level should an employer choose?

Answered: 1 week ago