3806 Tasty Java Assignments
Site last update on: Sunday Dec 5th 2010
November 29th 2010
Assignment 2 part 2 DUE Dec 13th(THIS COUNTS 25% toward your grade)
- Build on part one assigned on Nov 15th
- Remember your project is an ATM for only you. It will allow you to select the ability to do deposits, withdrawals, and check your balance
- Addtionally you will want to calculate interest. In order to do this we must prompt for a date.
- The get date functions have been given to you in the above document. You will want to call getDate1 if....if....if you are doing your first transaction (ex. deposit or withdraw) else if you have already done your first transaction you will call getDate2, you will notice that the calcInterest function given to you at the end assigns the second date to the first date, this is so when you perform any transaction after the first one you will only need to call getDate2.
-
The pattern you will use in your menu function after you have pulled in the input will be to check (if statement) the transaction type then if....if....if the dateflag is false you will call getDate1 then call your transaction function, (deposit, withdraw etc...)
-
If...if...if...the dateflag is true you will call getDate2, then calcInterest then call your transaction function, (deposit, withdraw etc...)
- Come to class with questions and Good Luck!
November 15th 2010
Assignment 2 part 1 DUE Nov. 29th(THIS COUNTS 25% toward your grade)
- It should contian the following:
- Constructor that initializes balance to $100.00
- Main method that initializes class object by calling the constructor, then uses the object to call the menu function
- Menu function that loops and allows the user to deposit funds, withdraw funds, or check their balance.
- Must have the following functions: Deposit Function, Withdraw Function, Check Balance Function
- Make sure to format your balance variables as US currency when it prints out. (Hint: Google, Java Currency Format)
October 11th 2010
Assignment 1 (THIS COUNTS 25% toward your grade)
- Create a Payroll Application
- It should do the following:
- Prompt users for their First and Last name.
- Prompt users for their hours worked.
- Prompt users for their pay rate.
- Prompt users for their tax rate.
- If hours are greater than 40 then you will need to determine overtime pay. (Over time pay is time and a half or 1.5 of the base pay rate.)
- If hours are 40 or less then you will need calculate pay at the rate given.
- Hold all values in corresponding variables such as(double, int, float, String etc...)
- Print out the users pay stub, with their:
- Last Name and First Name
- hours worked
- pay rate
- base pay
- overtime pay (yes, it could be zero)
- Gross Pay
- Taxes taken out
- Net Pay
- Make sure to format all pay variables as US currency when they print out. (Hint: Google, Java Currency Format)
HOME WORK - (None)
- In Class we worked on if statement examples.
October 4th 2010
HOME WORK - (DUE DATE Oct. 11th)
- In Class we worked on a Console Input and Output example with String Tokenizer
- Take Home and due on Oct 11th is a ConsoleTest.java file consist of the following:
- First: Removes(Comments out) any use of String Tokenizer.
- Second: Set up a Buffered Reader object as shown in class and utilize it to get input of an integer, float and string.
- Third: Convert the input as needed for the approprate input type - integer, float and string. (Hint: use static methods like parseInt(), parseFloat(), etc..)
September 27th 2010
HOME WORK - (DUE DATE Oct. 4th)
- In Class we worked on a fibonacci series
- Take Home and due on Oct 4th is a KbdInput.java file function calls and should consist of the following:
- First: Initialize a "KbdInput Object" variable or call the functions from the "Class KbdInput Static Functions" directly.
- Second: Follow the pattern you developed in class and call all functions; readInt(), readFloat(), readDouble(), readString().
September 20th 2010
HOME WORK - (DUE DATE SEPT. 27th)
- In Class we will work a fibonacci series
- Take Home and due on Sept 27th is a ChangeMaker.java file and should consist of the following:
- First: Initialize "int" variables for the original amount, quarter, dimes, nickles and pennies.
- Second: Use the modulus operator [ % ] to get the remainder for the above variables.
- Third: Print out the results.
- Fourth: Program should work as the demo shown in class. (If you missed class, call a friend for more info.)