FIV Lab 03.docx - CS 140 Java PROGRAMMING Lab Report[03 Fall 2019 ID A00250811 Name Steven Perumean Date Write a program that reads in investment amount

FIV Lab 03.docx - CS 140 Java PROGRAMMING Lab Report[03...

This preview shows page 1 - 2 out of 2 pages.

CS 140 Java PROGRAMMING Fall 2019 Lab Report [03] ID: A00250811 Name Steven Perumean Date 9/29/19 Write a program that reads in investment amount, annual interest rate, and the number of years,and displays the future investment value using the following formula: and displays the future investment value using the following formula:futureInvestmentValue =investmentAmount * (1 + monthlyInterestRate)numberOfYears*12importjava.util.Scanner;CODE:publicclassFIV {publicstaticvoidmain(String[] Strings) {Scanner input = newScanner(System.inSystem.out.print("Enter investment amount: ");doubleinvestmentAmount = input.nextDouble();System.out.print("Enter annual interest rate in percentage: ");doubleannualInterestRate = input.nextDouble() / 100;
);
Image of page 1
Image of page 2

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture