Lab4_BankingSystem1 - CST8132 Object-Oriented Programming Lab 4 Banking System I Due Date Week 5 \u2013 in own lab hours Marks 10 marks(worth 4 of term

Lab4_BankingSystem1 - CST8132 Object-Oriented...

This preview shows page 1 - 2 out of 4 pages.

CST8132 Object-Oriented Programming Lab 4: Banking System I Due Date: Week 5 – in own lab hours Marks: 10 marks (worth 4% of term mark) Demo: Demo your code and output to your lab professor during your own lab hours. Recommended Reading: Chapter 9 of Deitel and Deitel, Java How to Program book Exercise In this lab, we will create a few classes to represent a Bank system. A bank has various account holders in their system, and these account holders can have Savings account or Checking account. In this lab, we are developing a system that represent this scenario. We are creating a few classes namely Person, Account, Checking, Savings, and Bank, along with the Driver class. All personal attributes like first name, last name, email, phone number should be in Person class. Account class should have an account number attribute, accHolder which is a Person object, and a balance that is a double attribute which represents the balance amount (by having a Person object in Account class, we are implementing Composition). As we know that account can be Checking or Savings account, we need to create two classes – Checking and Savings, both extends Account class (As we are extending classes, we are using inheritance). Checking class should have a fee attribute that represents the monthly fee. Savings class should have interestRate attribute that represents yearly interest. Bank class will manipulate the bank accounts.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture