Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started