Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please program in C++. ONLY NEED TO DO PART 2. Only need to refer to part 1 for the necessary member variables and classes. Part
Please program in C++. ONLY NEED TO DO PART 2. Only need to refer to part 1 for the necessary member variables and classes.
Part 1
Part2:
Design a class named PersonData with the following member variable:s . lastName . firstName . address city state phone Write the appropriate accessor and mutator functions for these member variables Next, design a class named customerData, which is derived from the PersonData class. The CustomerData class should have the following member variables . customerNumber mailingList The customerNumber variable will be used to hold a unique integer for each customer. The mailingList variable should be a bool. It will be set to true if the customer wishes to be on a mailing list, or false if the customer does not wish to be on a mailing list. Write appropriate accessor and mutator functions for these member variables Create a program that does the following Create a function enterNCustomers (int n) that asks to enter n number customers. All the customer fields must be filled in, and the result of the function is a vector containing n customer objects. Note that you may read customer info in from a text file it's up to you. User input or input from a file Create another function that displays all the customer information to the consoleStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started