Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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