Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For c++ please QUESTION 3 You are required to implement and document (using inline comments) the required classes for a simple telephone/email directory program. This
For c++ please
QUESTION 3 You are required to implement and document (using inline comments) the required classes for a simple telephone/email directory program. This directory program is going to be used to store the contact details of persons and companies of interest. The following is the information required to be stored for a person of interest: Name Sumame Landline number Mobile phone number Email Address The following is the information required to be stored for a company of interest: Company name Email address (Common email address, e.g. info@abc.com) Landline number Contact person name Contact person email address Your classes should include functions to display the record details on the screen, to accept the required information from the user, and to edit the record details. Make sure to use the concepts of encapsulation, Inheritance, and polymorphism to implement these classes. When you are done from the implementation of these classes, implement another class called Program that will include the necessary functions to make the program run. Class Program should also include the required data structure (such as an array or avector). This program should implement the following main menu: 1. Add Record 2. Display All Records 3. Display All Personal Records 4. Display All Company Records 5. Search Person by Name and Surname 6. Search Company by Name 7. Search by Mobile or Landline Number Implement a main function from where your program is started. In your main function you should include an array that can hold in it instances of both individual records and of company records (Hint: make use of polymorphism). MARKING SCHEME: 5 marks for correct selection of classes 5 marks for correct implementation of inheritance 5 marks for correct use of encapsulation 5 marks for correct use of constructors 10 marks for correct use of function overriding 10 marks for correct demonstration of Polymorphism in the main function 5 marks for correct menu implimentation 5 marks for valid inline comments explanations 150 marks
Step 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