Assignment 1

CSIS 10B
Assignment 1 Java Classes
Due: next Wed
In Class Demo (0 points):
1)
2)
3)
4)
5)
6)
7)
8)
Use Ratio class to add or multiply fractions, demonstrate basic Class pattern
Use BankAccount class to model bank accounts
Add clone method to BankAccount. Modify toString method
Using Scanner to read BankAccount object from the keyboard
Using File and Scanner to read BankAccount object from a data file
Find highest account holder in file
Use an Association class to help translate English to Pig Latin
Demo of Hangman application (we’ll come back to)
Assignment (10 points) Do either Basic or Advanced.
Basic—Lab1Student
1) Refer to BankAccount demo as you make a Student class representing
firstName, lastName, ID, GPA of a student in a database
2) Develop and test constructor, toString, accessors, modifiers, clone, equals, read
3) read students from file and find average GPA and highest GPA
Advanced: Lab1DayOfWeek
If you would like a more difficult challenge, try the Day of Week calculator on page 29 of our text.