Question: how to write this on jgrasp please: This pseudocode segment is intended to compute and display // the cost of home ownership for any number
how to write this on jgrasp please:
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 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
