Question: (100 points) You are to write a C++ program to calculate the monthly car payment(s) for a customers.. You have probably read ahead in your

 (100 points) You are to write a C++ program to calculate
the monthly car payment(s) for a customers.. You have probably read ahead
in your textbook and know that it would be really neat to
use functions for this task. Unfortunately you have not had functions yet
and you must resort to a lincar straight-line program. (In other words,

(100 points) You are to write a C++ program to calculate the monthly car payment(s) for a customers.. You have probably read ahead in your textbook and know that it would be really neat to use functions for this task. Unfortunately you have not had functions yet and you must resort to a lincar straight-line program. (In other words, you are NOT to use functions.) As much as possible you are to develop the code as modular building blocks. You are encouraged to use functional decomposition to design your program. You are to USE NO GLOBAL VARIABLES in your work. You should manually calculate some values to ensure that your program is working correctly. In the following order, your overall program structure will consist of: Declarations and initializations Input price of vehicle Input trade in value Input down payment Input annual interest rate Calculate monthly loan payments Display (output) results All input routines are to have informative and clear instructions for entering values. The input routines are to keep the user in the routine until an entry is valid. Your program should be well organized, use the suggested variable names, proper indentations, and appropriate comments. You are to use the concepts we have covered in the first seven chapters and are not to use capabilities found in chapters eight through twelve (such as functions, stums, arrays, structs, or classes). The input of all variables is via the keyboard (cin). The display routine is to use cout via the standard monitor, I Variable price down Payment traden Ioan Amt annualIntRats annuallotParset menintats noMonths Description Price of vehicle Down Payment Trade in for vehicle Loan Amount (calculated) Annual Interest Rate (fraction) Annual Interest Rate (percent) Monthly Interest Rate (fraction) Number of Monthly Payments (12, 24, 36, 48 Data Type float float float float float float float States) Focus Variable Data Type float float float price dawn Payment tradeIn loan Amt annualIntRate annualIntPstsent menintats DO Months Description Price of vehicle Down Payment Trade in for vehicle Loan Amount (calculated) Annual Interest Rate (fraction) Annual Interest Rate (percent) Monthly Interest Rate (fraction) Number of Monthly Payments (12, 24, 36, 48 float float float float int & 60) Monthly Payment mon Payment float wonlotats annualloukats / 12.0 moulintPesant - annualIntRate 100.0 losnamt-price-downpayment - tradeln mon Payment - (panamt monintRateX/10-11+monitRate):) where noMonths. -12, 24, 36, 48, & 60. Also note that the exponent in the above equation is negative. CODE SECTIONS Main Declarations and main S) O Focus CODE SECTIONS Main Get price Get ititerest rate Get down payment Get tradein Calculate monthly payment Display loan schedule Exit routine Declarations and main Input price of vehicle Input the annual interest rate as a decimal fraction. Input down payment in dollars and cents. Input trade in in dollars and cents Calculate the monthly payment using the supplied equations Display the pertinent loan data and calculation results. Terminate program Your programming manager has directed you to produce blocks of modular routines to perform different tasks. Get price routine You are to use a while loop to get the value from the keyboard. You are to edit the input value to ensure that the price value is greater than $50.00 and less than $50,000.00 Get tradeln routine You are to use a while loop to get the value from the keyboard. You are to edit the input value to ensure that the tradeln value is greater than or equal to zero and less than the price I Get down Payment routine You are to use a while loop to get the value from the keyboard. You are to edit the input value to ensure that LE Get down Payment routine You are to use a while loop to get the value from the keyboard. You are to edit the input value to ensure that the downPayment value is greater than or equal to zero and less than the price minus the trade in. Get annualIntRate routine You are to use a while loop to get the value from the keyboard. The interest rate is to be entered as a decimal fraction. For example.06 would be entered rather than 6%. The annual interest rate must be greater than or equal to zero and be less than 50. Calculate monPayment routine You are to use the monPayment equation to calculate 5 monthly payment amounts. You are to calculate a monthly payment for 12, 24, 36, 48, and 60 months Display loan schedule You are to display the pertinent loan information. The report format and contents are shown below You are to align your columns (this example may not be aligned correctly) and display two places to the right of the decimal. You are given the following report example. The attached midterm gradink guideline provides an example that you can use to verify your work. Honest Dave's Used Cars Vehicle price 99999.99 Trade in value 99999.99 Down payment 99999.99 Loan amount 99999.99 Annual interest rate 99.99% Monthly payment options 12 months 9999.99 C Focus Cum You are to align your columns (this example may not be aligned correctly) and display two places to the right of the decimal. You are given the following report example. The attached midterm grading guideline provides an example that you can use to verify your work Honest Dave's Used Cars Vehicle price 99999.99 Trade in value 99999.99 Down payment 99999.99 Loan amount 99999.99 Annual interest rate 99.99% Monthly payment options 12 months 9999.99 9999.99 24 36 48 60 I 9999.99 9999.99 9999.99

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!