Hi again,
today we got given this problem:
The LandL bank can handle at least 30 customers who have savings accounts.
* Design and then implement a program which manages deposits and withdrawls.
* Produce suitable error messages for invalid transactions
* Add a method which adds 3% to all accounts when it is invoked.
In class today we designed a class diagram in a group and this is our result: (tutor said tis fine and now we need to code it):
Bank Class
-customers: ArrayList<Customer>
+getCustomerById(int): Customer
Customer Class
-customerId: int
-name: String
-accounts: ArrayList<Account>
+getCustomerId()
+getName()
+getAccount(int)
Account Class
-accountId: int
-balance: double
+getId(): int
+getbalance(): double
+deposit(double)
+withdraw(double)
+rasieByPercentage(double)
I am using netbeans to code this in java
I have a few questions please that would help me get started.
How many Main classes and normal classes do i need?
What should the programs actually do?
do i create 30 names for customers in an Array?
do i ask for user input by typing in a name and then ask what they want to do i.e. make a deposit, make a withdrawal and request balance
What do they mean by: Add a method which adds 3% to all accounts when it is invoked.
Many thanks for your help