Question: Use modular programming principles (as discussed in section 3.2 of the Prelude to Programming book) to develop a program using pseudo code statements to answer

Use modular programming principles (as discussed in section 3.2 of the Prelude to Programming book) to develop a program using pseudo code statements to answer the problem below. Answer each of the following areas: o Design a hierarchy chart to document the program in a modular fashion. o Design this program in a modular fashion using pseudo code (e.g. INPUT, SET, WRITE); each module should use as a series of sequence control structures. Use Microsoft Word to complete this part.

Sara wants to buy a car. Help Sara compute the monthly payment on a loan. You have the following data:

1. You will be given the loan amount, the annual percentage rate of interest, and number of monthly payments.

2. Your program should allow Sara to input the loan amount, interest rate, and how many payments she wants to make.

3. Your program should then compute and display the monthly payment.

4. You need to make the following variables: Payment, LoanAmt, InterestRate, MonthlyRate, NumberMonths.

5. You will need the following formula: MonthlyRate = InteresteRate/1200

6. When the user enters InterestRate as a percentage, it must be divided by 100 to make it a decimal (i.e., 18% = 18/100 = 0.18).

7. The InterestRate offered by car dealers is an annual rate so this must be divided by 12 to get the MonthlyRate.

8. The formula in step 5 combines steps 6 and 7 (i.e., annual rate of 18% = 18/100 =0.18 and the monthly rate is 0.18/12=0.015 or 18/(100*12) = 18/1200.)

9. Payment = LoanAmt * MonthlyRate * (1 + MonthlyRate)^NumberMonths / ((1+MonthlyRate)^NumberMonths 1)

10. This formula must be entered correctly for it to calculate the correct answer.

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!