C++ Programming Define the class bankAccount 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 print account information appropriate constructors.  Every bank offers a checking account. Derive the class checkingAccount from the class bankAccount (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, and pays service charges if the balance falls below the minimum balance. Add member variables to store this additional information. In addition to the operations inherited from the base class, this class should have the appropriate constructors and 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) print account information appropriate constructors. Every bank offers a savings account. Derive the class savingsAccount from the class bankAccount (designed in part 1). This class inherits members to store the account number and the balance from the base class. A customer with a savings account typically receives interest, makes deposits, and withdraws money. In addition to the operations inherited from the base class, this class should have the appropriate constructors and provide the following operations: set interest rate retrieve interest rate post interest withdraw (override the method of the base class) print account information  Be sure to avoid multiple inclusion of your header file (.h file) by adding the appropriate preprocessor commands in the header file itself. Example:  #ifndef H_test#define H_test//Your interface file code goes here#endif Create a driver program to tests ALL member functions in each class that you have designed. See Testing your class to understand what is expected when it comes to testing your code.

Oh no! Our experts couldn't answer your question.

Don't worry! We won't leave you hanging. Plus, we're giving you back one question for the inconvenience.

Submit your question and receive a step-by-step explanation from our experts in as fast as 30 minutes.
You have no more questions left.
Message from our expert:
Our experts are unable to provide you with a solution at this time. Try rewording your question, and make sure to submit one question at a time. We've credited a question to your account.
Your Question:

C++ Programming

  • Define the class bankAccount 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
    • print account information
    • appropriate constructors.
  •  Every bank offers a checking account. Derive the class checkingAccount from the class bankAccount (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, and pays service charges if the balance falls below the minimum balance. Add member variables to store this additional information. In addition to the operations inherited from the base class, this class should have the appropriate constructors and 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)
    • print account information
    • appropriate constructors.
  • Every bank offers a savings account. Derive the class savingsAccount from the class bankAccount (designed in part 1). This class inherits members to store the account number and the balance from the base class. A customer with a savings account typically receives interest, makes deposits, and withdraws money. In addition to the operations inherited from the base class, this class should have the appropriate constructors and provide the following operations:
    • set interest rate
    • retrieve interest rate
    • post interest
    • withdraw (override the method of the base class)
    • print account information 
  • Be sure to avoid multiple inclusion of your header file (.h file) by adding the appropriate preprocessor commands in the header file itself. Example: 

    #ifndef H_test
    #define H_test
    //Your interface file code goes here
    #endif

  • Create a driver program to tests ALL member functions in each class that you have designed. See Testing your class to understand what is expected when it comes to testing your code.
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
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