Question: Chapter 2 Assignment ( 1 0 points ) : User Input Vour foal is to take in data from the user, write equations, and output
Chapter Assignment points: User Input
Vour foal is to take in data from the user, write equations, and output results. You are going to ask the user a loan amount, rate, and number of years and then find the interest.
Ask the user for the loan amount, rate, and years and save these into variables, You can use JOptionPane or Scanner, points
Calculate the interest using the following formular points
interest amount rate years
Display the output of the loan amount, late, years and the interest that you calculated. Display the amounts with a doller sign and decimals: points
Example Output:
Loan amount:
Interest rate:
Number of years:
Interest:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
