Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using this skeleton code: WELCOME _ TEXT = ' ' ' MORTGAGE PLANNING CALCULATOR = = = = = = = = = = =

using this skeleton code: WELCOME_TEXT ='''
MORTGAGE PLANNING CALCULATOR
============================'''
MAIN_PROMPT ='''
Enter a value for each of the following items or type 'NA' if unknown '''
LOCATIONS_TEXT ='''
Where is the house you are considering (Seattle, San Francisco, Austin, East Lansing)?'''
SQUARE_FOOTAGE_TEXT ='''
What is the maximum square footage you are considering? '''
MAX_MONTHLY_PAYMENT_TEXT ='''
What is the maximum monthly payment you can afford? '''
DOWN_PAYMENT_TEXT ='''
How much money can you put down as a down payment? '''
APR_TEXT ='''
What is the current annual percentage rate? '''
AMORTIZATION_TEXT ='''
Would you like to print the monthly payment schedule (Y or N)?'''
LOCATION_NOT_KNOWN_TEXT ='''
Unknown location. Using national averages for price per square foot and tax rate.'''
NOT_ENOUGH_INFORMATION_TEXT ='''
You must either supply a desired square footage or a maximum monthly payment. Please try again.'''
KEEP_GOING_TEXT ='''
Would you like to make another attempt (Y or N)?'''
NUMBER_OF_PAYMENTS =360 # 30-year fixed rate mortgage, 30 years *12 monthly payments
SEATTLE_PROPERTY_TAX_RATE =0.0092
SAN_FRANCISCO_PROPERTY_TAX_RATE =0.0074
AUSTIN_PROPERTY_TAX_RATE =0.0181
EAST_LANSING_PROPERTY_TAX_RATE =0.0162
AVERAGE_NATIONAL_PROPERTY_TAX_RATE =0.011
SEATTLE_PRICE_PER_SQ_FOOT =499.0
SAN_FRANCISCO_PRICE_PER_SQ_FOOT =1000.0
AUSTIN_PRICE_PER_SQ_FOOT =349.0
EAST_LANSING_PRICE_PER_SQ_FOOT =170.0
AVERAGE_NATIONAL_PRICE_PER_SQ_FOOT =244.0
APR_2023=0.0668 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 2024
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 well-spaced valaes for month number, intarot puymant, priacipal payment, and remeining
The ondar of the strings iz an solown:
"wenth" is a contered 9 draraction long fidd.
"tareveac" is a contered 12 charackin bagy fidld
Separatar: ts times ?-+
Data:-11411 i 20 i 211-1
The ondar of the number in the thle is as follows:
leng fidd with precieisen 2 and the cerrers for the thowande.
fidd with precision 2 and the cosrers for the thoucand.
long with procivise 2 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 3: maximum mantaly payment ealy
Care 1: 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 112 and evit the bop
repat this valac to the user.
Cave 4: 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 3 through 4. Otharwise, the progran stop.
image text in transcribed

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

More Books

Students also viewed these Databases questions