Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using this skeleton code: WELCOME _ TEXT = ' ' ' MORTGAGE PLANNING CALCULATOR = = = = = = = = = = =
using this skeleton code: WELCOMETEXT
MORTGAGE PLANNING CALCULATOR
MAINPROMPT
Enter a value for each of the following items or type NA if unknown
LOCATIONSTEXT
Where is the house you are considering Seattle San Francisco, Austin, East Lansing
SQUAREFOOTAGETEXT
What is the maximum square footage you are considering?
MAXMONTHLYPAYMENTTEXT
What is the maximum monthly payment you can afford?
DOWNPAYMENTTEXT
How much money can you put down as a down payment?
APRTEXT
What is the current annual percentage rate?
AMORTIZATIONTEXT
Would you like to print the monthly payment schedule Y or N
LOCATIONNOTKNOWNTEXT
Unknown location. Using national averages for price per square foot and tax rate.
NOTENOUGHINFORMATIONTEXT
You must either supply a desired square footage or a maximum monthly payment. Please try again.
KEEPGOINGTEXT
Would you like to make another attempt Y or N
NUMBEROFPAYMENTS # year fixed rate mortgage, years monthly payments
SEATTLEPROPERTYTAXRATE
SANFRANCISCOPROPERTYTAXRATE
AUSTINPROPERTYTAXRATE
EASTLANSINGPROPERTYTAXRATE
AVERAGENATIONALPROPERTYTAXRATE
SEATTLEPRICEPERSQFOOT
SANFRANCISCOPRICEPERSQFOOT
AUSTINPRICEPERSQFOOT
EASTLANSINGPRICEPERSQFOOT
AVERAGENATIONALPRICEPERSQFOOT
APR use the attatched image to make me a full code that follows all the cases If the user has provided the squane fioctape only, you will compute the detale of the mortgage licon given
CSe tis
Sarive
sectise below fise all the nossory formalas.
Mortgage locin infiemation will be diaplayod containing all the providad information a well as the
monthly troes nod the mosethly paymenk. The moxape should be dieplayed like the one shown below.
Finally, ak the ancr if they wish to soc the amortization table for the mortpege ban uxing the atring
balmos remaining and the mosthly interat make. Une poper farmatting for the amortimation table with a
header and wellspaced valaes for month number, intarot puymant, priacipal payment, and remeining
The ondar of the strings iz an solown:
"wenth" is a contered draraction long fidd.
"tareveac" is a contered charackin bagy fidld
Separatar: ts times
Data: i i
The ondar of the number in the thle is as follows:
leng fidd with precieisen and the cerrers for the thowande.
fidd with precision and the cosrers for the thoucand.
long with procivise and the comrna for the threasand.
Cacs ti: maximum manthly payment and square foatage
If the user has provided a naximum monthly parment in addition to the square foseage, in additioe io
their maximum mosthly payment mount given. An exarpile is ahown below. In the starter code, we
provide an incouplete string that yoe nood to fill in with the canoct formattiag for mamben uaing the
example meways below in nod
Care : maximum mantaly payment ealy
Care : maximum mantaly payment baly
calculate the maximan aqure forkage that their monthly prymant can afford in the location apecified.
monthly puyment allown fise. While there is an algotraic welation for tuis problem, it gods a bit maky
approsirution method. To do this follove the algoritum shown helow.
While the maximum square fiotage hax not bece found:
trowardi the laas, and the manttly payment far the anrial thoos.
provided by the user, noduce the maximum square foctape by and evit the bop
repat this valac to the user.
Cave : Neither
Noic: if neither devined equane fostage nar maximum moethly payment have bean povided, diaplay the
Then, the progran whould ank the axcr if they want to make anothar atiempt the proenpt to dieplay is
then, proceced bo repeat stepe through Otharwise, the progran stop.
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