Answered step by step
Verified Expert Solution
Link Copied!

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 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
image text in transcribed

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

3. Existing organizations and programs constrain behavior.

Answered: 1 week ago