Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can anyone write the code using the while loop The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest

Can anyone write the code using the while loopimage text in transcribed

image text in transcribed

The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of 12%. Monthly payments are 5% of the listed purchase price, minus the down payment. Write a program that takes the purchase price as input. The program should display a table, with appropriate headers, of a payment schedule for the lifetime of the loan. Each row of the table should contain the following items: 1. The month number (beginning with 1) 2. The current total balance owed 3. The interest owed for that month 4. The amount of principal owed for that month 5. The payment for that month 6. The balance remaining after payment The amount of interest for a month is equal to balance x rate /12. The amount of principal for a month is equal to the monthly payment minus the interest owed. An example of the program input and output is shown below: Enter the puchase price : 290 Month Starting Balance Interest to Pay Principal to Pay Payment Ending Balance 172-89 165.53 158.18 150.77 143.27 135.71 128.06 120.34 112.55 104.67 96.72 88.69 80.57 72.38 64.10 55.74 47.30 180.00 172-89 165.53 158.18 150.77 143.27 135.71 128.06 120.34 112.55 104.67 96.72 88.69 80.57 72.38 64.10 55.74 47.30 9.00 9.00 9.00 9.00 9.00 9.00 9.00 9.00 9.00 9.00 9.00 9.00 9.00 9.00 9.00 9.00 9.00 9.00 9.00 9.00 9.00 9.00 3.80 1.80 1.73 1.66 1.58 1.51 7.27 7.34 7.57 1.36 1.28 1.20 1.13 1.05 97 0.89 0.81 0.72 0.64 0.56 .47 7.72 7.80 7.87 8.03 8.11 8.19 8.44 8.53 8.61 8.70 30.16 21.46 12.68 3.80 0.21 0.13 0.00 30.16 21.46 12.68 3.80 0.00 8.87 3.80

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

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

More Books

Students also viewed these Databases questions

Question

What was the source of the problem here?

Answered: 1 week ago