Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

OOP(JAVA) Write a program to input data relevant to an automobile loan and then, after computing the amortized monthly payment, print a table showing the

OOP(JAVA)

Write a program to input data relevant to an automobile loan and then, after computing the amortized monthly payment, print a table showing the monthly information indicated below. You must use methods for the separate tasks! (e.g.) Input of data, computation of payment, output of headers, compute monthly data, and output monthly data.

Input:

Principal real

Annual interest rate real

# of years of loan integer

# payments per year integer

Data:

30,000.00 8.5% 6 12

Processing:

A is amortized payment amount (rounded: use formula once only)

p is the principal p * i * (1 + i)n

i is the annual rate / # of payments per year A = ----------------

n is total number of payments of loan (1 + i)n - 1

Find the following for each payment period:

a. payment number

b. amount of interest due for that payment (rounded)

c. amount of payment applied toward principal

d. remaining balance after payment has been made

Note: Eventually the unpaid balance will be smaller than the payment amount this must be dealt with as a special case when computing payment information for the last payment.

Output:

Allow 24 payments per page, making sure that you put the page and column headers on every page. The sample output below indicates the values that must be output each time a payment is made. Finally, the total interest paid over the life of the loan must be accumulated throughout the processing portion of the program and its value must be printed at the bottom of the last page of output.

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

Beginning VB.NET Databases

Authors: Thearon Willis

1st Edition

1594864217, 978-1594864216

More Books

Students also viewed these Databases questions