IN JAVA CODE: You’ve took the leap and finally decided to buy a car. Congratulations! Bad news is, you’re going to have

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

IN JAVA CODE: You’ve took the leap and finally decided to buy a car. Congratulations! Bad news is, you’re going to have

Post by answerhappygod »

IN JAVA CODE:
You’ve took the leap and finally decided to buy a car.
Congratulations! Bad news is, you’re going to have to pay a monthly
fee for that car for the next few years. In order to make sure
you’d have enough money to pay for the car and all your other
expenses, it would be best if you calculate the simple interest of
your purchase ahead of time. This can be done using this equation:
Simple Interest = (amount * rate * time) / 100.
Make sure to round off to the nearest hundredths!
Input
1. The amount
Description
The amount can be a decimal number.
2. The rate percentage
Description
The rate percentage can be a decimal number.
3. The number of years
Output
The first line will contain a message prompt to input the
amount. The second line will contain a message prompt to input the
rate percentage. The third line will contain a message prompt to
input the number of years. The last line contains the value of the
simple interest.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply