Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Main.java public class Exercise 0 2 _ 2 1 { public static void main ( String [ ] args ) & java.util.Scanner input = new
Main.java
public class Exercise
public static void mainString args &
java.util.Scanner input new java.util.Scanner
System.in:
Enter the investment amount
System.out.print
"Enter the investment amount, for example : :
double investmentAmount input. nextDouble:
Enter yearly interest rate
System.out.printEnter annual interest rate, for example : ;
double annualinterestRate input nextDouble :
Obtain monthly interest rate
double monthlyInterestRate annualinterestRate :
Enter number of years
System.out.print
"Enter number of years as an integer, for example : :
int numbefears input. nextInt :
double futurevalue
investmentAmount Math.pow monthlyInterestRate,
numfYears :
System.out.printFuture value is
intfutureValue :
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