Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in c++ please i want a right answer thank you The following diagram illustrates the classes you will implement in this lab and their relationships.

in c++ please
i want a right answer thank you image text in transcribed
image text in transcribed
image text in transcribed
The following diagram illustrates the classes you will implement in this lab and their relationships. Ex 1. File Class Implement Class file as described in the UML diagram above, Notice that: 1- print_details and destructor are virtual. 2- merge (File) is pure function. Ex 2. Excel Class Implement Class Excel as described in the UML diagram above. Notice that: 1- Parameterized constructor that receives all data members including data members in the base class. 2- In merge you must add the number of sheets in the receiving object to the current object. 3- in print you have to print all details of object. 4- override the destructor. Ex 3. Word class Implement Class Excel as described in the UML diagram above. Notice that: 1- Parameterized constructor that receives all data members including data members in the base class. 2- In merge you must add the number of pages in the receiving object. 3- in print you must print all details of object. 4- override the destructor. Ex 4. Driver Implement a driver program to test your code. 1- Create one object of type Word and another of type Excel. 2- Create array of pointers of type File of size 2 The first pointer points to the first object and the second pointer points to the second object. 3- Create array of pointers of type File of size 5, then ask the user to enter the type of file (Word or Excel) for each element of the array. 4- Merge any two objects of type Word then print the details. Ex 5. Friend function Implement the function bool find(Word\& doc, int pages) that searches in the pages in the received Word object for the received num of pages. Make this function a friend of class Word and modify your main( ) to test this function

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_2

Step: 3

blur-text-image_3

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part 2 Lnai 8725

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448505, 978-3662448502

More Books

Students also viewed these Databases questions

Question

Are my points each supported by at least two subpoints?

Answered: 1 week ago