Question: Chapter 2 Assignment ( 1 0 points ) : User Input Vour foal is to take in data from the user, write equations, and output

Chapter 2 Assignment (10 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, (3 points)
Calculate the interest using the following formular (3 points)
interest = amount *( rate ?100)* years
Display the output of the loan amount, late, years and the interest that you calculated. Display the amounts with a doller sign and 2 decimals: (4 points)
Example Output:
Loan amount: 5000
Interest rate: 6
Number of years: 15
Interest: 4500
 Chapter 2 Assignment (10 points): User Input Vour foal is to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!