Question: Java8 object-oriented programming,please explain in detail Question 3: Bank Account A bank account has an account number, BSB, and interest rate. The account can be

Java8 object-oriented programming,please explain in detail

Java8 object-oriented programming,please explain in detail Question 3: Bank Account A bank

account has an account number, BSB, and interest rate. The account can

Question 3: Bank Account A bank account has an account number, BSB, and interest rate. The account can be opened with an initial balance. It can perform several transactions: earn interest, withdraw, deposit or transfer to another account, and can generate an invoice for a given time period. A transaction has a date, a text description, and an amount (positive for a credit, negative for a debit). An invoice has a date period, a statistical summary of bank transactions and attributes of the bank account. Save As.pleCtrlt S following bank account: Account number: 123456789 BSB: 123456 Initial Balance: \$0.35 Interest Rate: 1.5\% p.a. could Your generate the following invoice: program Account number 123456789 BSB : 123456 Interest rate 1.5% : Statement for 01/05/2012 to 31/05/2012 Debit: Balance: Details: Credit: Date: Opening balance Salary Crazy clown airl. 01/05/2012 $0.35 $0.35 03/05/2012 $451.00 $451.35 06/05/2012 $30.00 $421.35 HD Max virtual cinema 06/05/2012 HD Max virtual cinema c. $8.00 $413.35 Hip froyo Salary Crazy clown airl. 06/05/2012 $16.10 $397.25 16/05/2012 $529.00 $926.25 32/05/2012 Account interest $1.16 $927.41 Save As... Ctrl+S rart 1. Describe (not code!) the above problem using classes. You should describe at least three classes: Account, Transaction and Invoice. Part 2. Describe as many class invariants for these classes as you can. Part 3. How is information passed between a bank account and its invoice? Part 4. Write a program to create a bank account, passing it all necessary initial values. Part 5. Add methods to describe a transaction being performed on the bank account. Part 6. Add a method to generate a invoice for a given time period, print the statement with the format given in the picture. Part 7. implement a subclass of Account called SaverAccount . For this type of account, you can earn a bonus interest rate of 2.3% p.a. above the base interest rate of 1.5% when you grow your balance by at least $500 by the end of the calendar month

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!