Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!