Create a class called Customer with the following data members: • Customer Account Number The valid values are any integ
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Create a class called Customer with the following data members: • Customer Account Number The valid values are any integ
Create a class called Customer with the following data members: • Customer Account Number The valid values are any integer numbers between 1000 and 9999 Defaults to 1000 • Customer Name A String Defaults to "Bill Gates" • Customer Account Type A char value representing the account type which is either C for credit or S for Saving Defaults to s • Customer Account Balance A positive double value Defaults to 0.0 And the following member functions: • One constructor with default arguments • One SetAll function and one set function for each data member Get functions for each data member • A member function that increments the balance of only savings accounts by a certain value A member function that decrements the balance of only checking accounts by a certain value. Make sure that the value is less than or equal to Available balance; if not display an error message. • A print function that returns a string representing information about a Customer. Write a program to test the class by: • Creating two objects, a pointer and a reference. Using the two objects, pointer and reference to test all the member functions of your class. .
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!