1. Using C++, write a class Account which has the following attributes Account nois of type int, and Account balance is
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
1. Using C++, write a class Account which has the following attributes Account nois of type int, and Account balance is
1. Using C++, write a class Account which has the following attributes Account nois 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 Virtual Function to set the Account_o 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 # Virtual Function to withdraw the money from the Account 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 everride 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 attribute 2Pace Interest rate, minimum balance allowed, service charges, date of account opening (Date Type 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 & 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 Function to check if the balance is less than the minimum balance 1. 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 Question 2 Make the UML diagram of Question 01
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!