CS 206: Data Structures
Exercise#6
Due on Tuesday, February 25
Extend your BankAccount class from Exercise5 to include SavingsAccount and CheckingAccount classes as discussed in class. You will need to add two checkboxes to select from Checking or a Savings account at the time of account creation. You may also want to declare your BankAccount as an abstract class at this point. The basic functionality of your applet will remain the same except now your applet will be able to handle two different kinds of accounts. Assume that each Savings account has in interest rate attached to it (you may fix it to a predetermied amount, say 1.5%) and each Checking account has a minimum balance requirement (again fix it to $500). We will not really do any processing with these new additional fields, but we will creat new accounts of these types. Demonstrate this functionality in your applet.