Answered step by step
Verified Expert Solution
Question
1 Approved Answer
csci 1 0 1 1 lab 2 Instructions Start Apache NetBeans. Create a new project called YourlastnameLab 2 Write the following program in the editor
csci lab
Instructions
Start Apache NetBeans.
Create a new project called YourlastnameLab
Write the following program in the editor window making sure to use your name
instead of Bram Stoker:
package cscilolab;
import java.util.Scanner;
CSCI Lab
@author Bram Stoker
A program that calculates interest on a deposit
public class BramStokerLab
@param args the command line arguments
APSU
public static void mainString args
Scanner keyboard new Scanner
System.in;
System.out.printlnWelcome to Bram Stoker's interest
calculator.";
System.out.println;
System.out.printlnPlease enter your initial deposit
amount:";
double balance keyboard.nextDouble;
balance balance balance ;
$
System.out.printlnWith a APR your deposit will be worth
Run the program and test it with sample input. Do this several times.
Modify the program so it uses a named constant in place of
Run the program and test it to see if it gives the same values.
Modify the interest rate to
Run the program again and test it to see the values it gives have changed.
Did you change the output, so it now says If not make that change and run the
program again.
Since it would be easier not to have to change the program in two places, declare a
new double variable called percent and set its value to times the interest rate.
Modify your output statement so it uses the percent variable instead of
Run the program again and test it to make sure it still works properly.
Add some additional statements to compute what the balance will be after a second
year of earning interest and display this result along with the original result.
Run the program again and test it to make sure that the new code works.
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