Question: In C++ write a class called customer made up of two private member variables for the amount of money in their checking account and savings

In C++ write a class called customer made up of two private member variables for the amount of money in their checking account and savings account. Create a public member function of customer called print Amount() which displays the amount of money in their checking and savings accounts. Create a class called banking that contains three private member variables for an array of the customer, the number of clients in array (integer) and a capacity for the array (capacity = 3). Write a public member function of banking called addCustomer() which take in a customer object and puts it in the internal array (it should increment the member variable storing number of clients). If the array is full, addcustomer() should print an error message (and not add the customer to array). Write a public member function of banking called printAmount() that calls printAmount() on all customer in array. Test the customer and banking classes with their function in main(). After adding client 1: After adding client 3: Client 1: Client 1: Checking Balance: 2010.71 Checking Balance: 2010.71 Savings Balance: 9876.33 Savings Balance: 9876.33 After adding client 2: Client 2: Client 1: Checking Balance: 13.71 Checking Balance: 2010.71 Savings Balance: 0.00 Savings Balance: 9876.33 Client 3: Client 2: Checking Balance: 500.00 Checking Balance: 13.71 Savings Balance: 600.00 Savings Balance: 0.0 After adding client 4: Not enough space to add client
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
