1. Using C++, write a class Account which has the following attributes: Account_no is of type int, and Account_balance i
Posted: Fri Apr 29, 2022 7:00 am
1. Using C++, write a class Account which has the following
attributes: Account_no is of type int, and Account_balance is of
type double Add the following operations in your class
A. A default constructor
B. A constructor that sets all variables of the class
C. Virtual Function to set the Account_no.
D. Virtual Function to retrieve the Account_no.
E. Virtual Function to set the Account_balance
F. Virtual Function to retrieve the Account_balance
G. Virtual Function to Add money to the Account
H. Virtual Function to withdraw the money from the Account
I. Virtual Function to display the Customer’s Account
Information.
2. Derive the class Account_Check from the class Account to
store the account number and the balance from the base class. A
customer with Account_Check 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. Make sure to override all the virtual
functions of Account Class into Account_Check class. In addition,
add an object of Client_Information class (as given in Part 3
below) as a member of Account_Check class to maintain information
of the client who owns the account. To summarize, this class should
have to following attributes: 3 | Page Interest_rate, minimum
balance allowed, service charges, date of account opening (DateType
object), Customer information (Client_Information object) Add the
following operations in your class
A. A default constructor
B. A constructor that sets all variables of the class
C. Function to set the interest rate
D. Function to retrieve the interest rate
E. Function to set the minimum balance
F. Function to retrieve the minimum balance
G. Function to set the service charges
H. Function to retrieve the service charges
I. Function to check if the balance is less than the minimum
balance
J. Function to display the Account information.
3. Create a class Client_Information, inherited from the class
personType with an additional data member to store Emirates ID,
Age, date of birth. (Use the class dateType to store the date of
birth. Add appropriate constructors and methods to initialize,
access, and manipulate the data members. Write a main function to
test the classes Make a record of 10 customer’s account using
Arrays.
attributes: Account_no is of type int, and Account_balance is of
type double Add the following operations in your class
A. A default constructor
B. A constructor that sets all variables of the class
C. Virtual Function to set the Account_no.
D. Virtual Function to retrieve the Account_no.
E. Virtual Function to set the Account_balance
F. Virtual Function to retrieve the Account_balance
G. Virtual Function to Add money to the Account
H. Virtual Function to withdraw the money from the Account
I. Virtual Function to display the Customer’s Account
Information.
2. Derive the class Account_Check from the class Account to
store the account number and the balance from the base class. A
customer with Account_Check 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. Make sure to override all the virtual
functions of Account Class into Account_Check class. In addition,
add an object of Client_Information class (as given in Part 3
below) as a member of Account_Check class to maintain information
of the client who owns the account. To summarize, this class should
have to following attributes: 3 | Page Interest_rate, minimum
balance allowed, service charges, date of account opening (DateType
object), Customer information (Client_Information object) Add the
following operations in your class
A. A default constructor
B. A constructor that sets all variables of the class
C. Function to set the interest rate
D. Function to retrieve the interest rate
E. Function to set the minimum balance
F. Function to retrieve the minimum balance
G. Function to set the service charges
H. Function to retrieve the service charges
I. Function to check if the balance is less than the minimum
balance
J. Function to display the Account information.
3. Create a class Client_Information, inherited from the class
personType with an additional data member to store Emirates ID,
Age, date of birth. (Use the class dateType to store the date of
birth. Add appropriate constructors and methods to initialize,
access, and manipulate the data members. Write a main function to
test the classes Make a record of 10 customer’s account using
Arrays.