Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LAB REQUIREMENTS 1. Make sure you have a green check in Grader for this lab. 2. Add comments to the top of your program: first

image text in transcribedimage text in transcribed

image text in transcribed
image text in transcribed
LAB REQUIREMENTS 1. Make sure you have a green check in Grader for this lab. 2. Add comments to the top of your program: first three comment lines must have: 1) your name, 2) COMP 171 and section no., and 3) Lab \# 3. Upload your Java program here (.java file). 4. Deadline is soft. Try to stick to the deadline to manage your time. You can submit labs later, without penalty. However, all labs are due no later than the last day of the semester. LAB GRADE: either 25 (complete) or 0 (incomplete) LAB REQUIREMENTS 1. Make sure vou have a green check in Grader for this lab. 2. Add comments to the top of your progans first three comment lines must have: 1l your name. 2) COMP 171 and section no and 3 Lab 3. Upload your Java progam here (java filel 4. Deadline is sott. Try to stick to the deadline to manage your time. You can submit bbs later, without penulty. However, all labs are due no later than the last day of the sementer. LAB GRADE either 25 kompletel or D (incomplete) Description: 2.21 (Financial application: calculate future investment value) Write a program that reads in investment amount, annual interest rate, and number of years. and displays the future investment value using the following formula: futureinvestmentValue = investmentAmount * (1+ monthlylnterestRate) ( (numberOfYears*12) For example, if you enter amount 1000 , annual interest rate 3.25%, and number of years 1 , the future investment value is 1032.98. When outputting the accumulated value, you must first truncate it to two decimal places using the technique in Chapter 2 or Canvas: Files > Week 02 > TruncateDecimals.java. Also output a dollar sign ($) in front of the number. See the sample runs below. Again, create only ONE Scanner object to accept all inputs from the user You should only ever create one Scanner object in your program when accepting input from the user. Program name: Lab02.java Sample Runs: Enter imvestnent amount: 1000 Enter annual interest rate in percentage: 10 Enter number of years: 5 Accurtulated value is $1645,3 Enter Investnent anount: 1111.51 Enter annual interest rate in percentaget 13 tnter number of years: 7 Aceveulated value is $2747,36

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

Students also viewed these Databases questions

Question

Always show respect for the other person or persons.

Answered: 1 week ago