Hey guys, I just started taking computer programming 1, and our first assignment is due tonight at midnight. I had missed last week because my mom had major surgery, and my freakin book hasn't arrived yet from half.com. I thought that our first assignment was going to be quite easy, some string literals, system output, etc. but when I went to see it, I'm real confused about it. I was wondering if any of you can point me in the right direction on how to start this assignment. Here it is:
I'm not looking for someone to give me the complete assignment, just to help me start. I've been reading up on java the past 3 hours so I kinda know the lingo and what not. I'd rather turn something in, even if it's not right, rather than not doing it and getting a zero.
assignment 1 said:COP 2250 Assignment 1: Basic I/O and Arithmetic
Andrew Allen Due: Midnight of Monday, September 17
Assignment 1.
Write a program to calculate the updated balance of a bank account after performing the following account transactions:
a deposit,
a withdrawal,
addition of interest.
Specific Requirements
Your program must consist of a single class named Assignment_1 and containing a single method, main().
Your program should declare and use the following variables…
double balance; // current balance for account
double depositAmount; // amount to be deposited to account
double withdrawalAmount; // amount to be withdrawn from account
double interestRate ; // e.g 5.0 for 5% interest rate
double interestAmount;// calculated interest
Use the Scanner class to get input from the user for:
balance, depositAmount, withdrawalAmount, interestRate
For example:
Scanner input = new Scanner(System.in);
System.out.print("Please enter current balance ");
balance = input.nextDouble();
For each input, display the value entered, then calculate and display the new balance. Displays should have appropriate messages.
I'm not looking for someone to give me the complete assignment, just to help me start. I've been reading up on java the past 3 hours so I kinda know the lingo and what not. I'd rather turn something in, even if it's not right, rather than not doing it and getting a zero.