Problem

a. Define a class named Customer that holds private fields for a customer ID number, last...

a. Define a class named Customer that holds private fields for a customer ID number, last name, first name, and credit limit. Include four public functions that each set one of the four fields. Do not allow any credit limit over $10,000. Include a public function that displays a Customer’s data. Write a main()function in which you declare a Customer, set the Customer’s fields, and display the results. Save the file as Customer.cpp.


b. Write a main()function that declares an array of five Customer objects. Prompt the user for values for each Customer, and display all five Customer objects. Save the file as Customer2.cpp.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT