In c++ Create an object-oriented program that manages bank account. Bank Account Manager Main Menu ========= 1 – Checking Account 2 – Saving Account x - Exit program Requirements Create the bank account to store a bank customer’s account number and balance. Suppose that account number is of type int, and balance is of type double. Your class should, at least, provide the following operations: set the account number, retrieve the account number, retrieve the balance, deposit, and withdraw money, and print account information. Add appropriate constructors. Every bank offers a checking account. Derive the class checking account from the class bank account (designed in part 1). This class inherits members to store the account number and the balance from the base class. A customer with a checking account typically receives interest, maintains a minimum balance. Add member variables to store this additional information. In addition to the operations inherited from the base class, this class should provide the following operations: set interest rate, retrieve interest rate, set minimum balance, retrieve minimum balance, set service charges, retrieve service charges, post interest, verify if the balance is less than the minimum balance, write a check, withdraw (override the method of the base class), and print account information. Add appropriate constructors. Every bank offers a saving account. Derive the class saving account from the class bank account (designed in part 1). This class inherits members to store the account number and the balance from the base class. A customer with a saving account typically receives interest, makes deposits, and withdraws money. In addition to the operations inherited from the base class, this class should provide the following operations: set interest rate, retrieve interest rate, post interest, withdraw (override the method of the base class), and print account information. Add appropriate constructors. For demonstration, write a main program to test your classes designed in parts 2 and 3.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter11: More Object-oriented Programming Concepts
Section: Chapter Questions
Problem 1GZ
icon
Related questions
Question

In c++ Create an object-oriented program that manages bank account.

Bank Account Manager

Main Menu
=========
1 – Checking Account
2 – Saving Account
x - Exit program

Requirements

  1. Create the bank account to store a bank customer’s account number and balance. Suppose that account number is of type int, and balance is of type double. Your class should, at least, provide the following operations: set the account number, retrieve the account number, retrieve the balance, deposit, and withdraw money, and print account information. Add appropriate constructors.
  2. Every bank offers a checking account. Derive the class checking account from the class bank account (designed in part 1). This class inherits members to store the account number and the balance from the base class. A customer with a checking account typically receives interest, maintains a minimum balance. Add member variables to store this additional information. In addition to the operations inherited from the base class, this class should provide the following operations: set interest rate, retrieve interest rate, set minimum balance, retrieve minimum balance, set service charges, retrieve service charges, post interest, verify if the balance is less than the minimum balance, write a check, withdraw (override the method of the base class), and print account information. Add appropriate constructors.
  3. Every bank offers a saving account. Derive the class saving account from the class bank account (designed in part 1). This class inherits members to store the account number and the balance from the base class. A customer with a saving account typically receives interest, makes deposits, and withdraws money. In addition to the operations inherited from the base class, this class should provide the following operations: set interest rate, retrieve interest rate, post interest, withdraw (override the method of the base class), and print account information. Add appropriate constructors.

For demonstration, write a main program to test your classes designed in parts 2 and 3.

Expert Solution
Explanation

The function overriding is the most well-known element of C++. Essentially function overriding methods rethink a function which is available in the base class, likewise be characterized in the inferred class. So the function marks are the equivalent however the conduct will be unique.

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning