Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to find the the total amount of interest paid if the user input the followings: Monthly interest rate Loan amount Monthly payment Include the

How to find the the total amount of interest paid if the user input the followings:

Monthly interest rate

Loan amount

Monthly payment

Include the following methods:

readInput(): will ask the user to input interest rate(which will be 1.2%), loan amount($1000), and monthly payment($50) and stores them in the following member variables interestRate, loanAmount and monthlyPayment, respectively.

computeInterest(): this method will perform the required computation to find the number of months and the total amount of interest paid. This method should store the number of months in a member variable called months and store the total collected interest in member variable called totatInterest.

display(): this method will output the number of months and total interest paid over those months

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

Spatial Databases With Application To GIS

Authors: Philippe Rigaux, Michel Scholl, Agnès Voisard

1st Edition

1558605886, 978-1558605886

More Books

Students also viewed these Databases questions

Question

Why did you want to work in HR?

Answered: 1 week ago