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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started