Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

Part2:

image text in transcribed

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 console

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions

Question

Most psychological variables are considered to be ____.

Answered: 1 week ago