Solved: 1. PersonData and CustomerData classes Design a class named PersonData with the following member variables: lastName fi

C++ program. Please read the instructions.
1. PersonData and CustomerData classes Design a class named PersonData with the following member variables: lastName firstName address city state zip Zip ne 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 CustomerDataclass 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 ficlds 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 - its up to you. User input or input from a file. Create another function that displays all the customer information to the console.
media%2F956%2F956b68eb-e448-478f-b371-c7
media%2Fd04%2Fd044ffe5-674c-4fff-b2c1-43

1. PersonData and CustomerData classes Design a class named PersonData with the following member variables: lastName firstName address city state zip Zip ne 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 CustomerDataclass 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 ficlds 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 console.

Expert Answer

 

Still stressed from student homework?
Get quality assistance from academic writers!