Hello. I need a solution for this assignment. It is for C++ Language:
Create a BusinessPartner class that contains a first name, company name, and a telephone number. Create a Contacts class that contains a dynamically allocated array of BusinessPartners as well as the owner''s name and cell phone number.
Write a program that creates a Contacts object. The Business Partner array should be filled with data from the BusPhNum.txt file. Your program should then create a menu for the user to do the following: (Note: This is an example of aggregation - you must use aggregation for full credit)
1) display all the Business Partners in the contacts object as well as the owner and phone number of the owner.
2) look up a particular name in the contacts object and retrieve the phone number of the Business Partner
3) look up a particular name in the contact object and retrieve the Business Partner''s company