Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++thanks in advance will thumb up. Topic The objective of the Final Project is to write a program which incorporates several advanced concepts and corresponding

C++thanks in advance will thumb up.

image text in transcribed

image text in transcribed

Topic The objective of the Final Project is to write a program which incorporates several advanced concepts and corresponding C++ constructs, such as Inheritance Polymorphism Containers and STL Templates Generic Algorithms The Final Project application will use a collection of several types on elements placed in a class hierarchy, so we can leverage polymorphism to manage the items at a common, base-class denominator level, while also utilizing specialized aspects, unique to each type. In order to accomplish this, the container will have to store the base class pointers, as handles to sub-classed specialized items. The collection will be organized in a STL container and will use a generic algorithm to efficiently sort and search the container. The project wi also incorporate a custom function template to capture an algorithm common for both sub-class types, but applied to a specific type. The functionality, encapsulated in methods and invoked through the menu, will include the following, Adding an item to the container Sorting the container based on an items' base class attribute (identifier, serial number, tag, etc. Searching for an item in the container. Prompt the user to select or enter an identifier. Removing a located item from the container Displaying the sorted list of items, detailing their attributes The example provided in class modeled a "Bag of Pets n the way described above. Other ideas of application that can be designed using a container of items include A Pet Hospital, where adding and removing an item would mean admitting and releasing a pet A Rental Store, where inventory items can be rented and returned, and which would carry two related types of items (books and videos, or cars and trucks, skis and snowboards, etc.) A Temp Agency, where you hire or release temporary employees The "items" will have several attributes in common (a unique Serial Number/ID/tag, a name, a description, etc.) inherited from a base class, and also additional attributes and behaviors specific to item types Topic The objective of the Final Project is to write a program which incorporates several advanced concepts and corresponding C++ constructs, such as Inheritance Polymorphism Containers and STL Templates Generic Algorithms The Final Project application will use a collection of several types on elements placed in a class hierarchy, so we can leverage polymorphism to manage the items at a common, base-class denominator level, while also utilizing specialized aspects, unique to each type. In order to accomplish this, the container will have to store the base class pointers, as handles to sub-classed specialized items. The collection will be organized in a STL container and will use a generic algorithm to efficiently sort and search the container. The project wi also incorporate a custom function template to capture an algorithm common for both sub-class types, but applied to a specific type. The functionality, encapsulated in methods and invoked through the menu, will include the following, Adding an item to the container Sorting the container based on an items' base class attribute (identifier, serial number, tag, etc. Searching for an item in the container. Prompt the user to select or enter an identifier. Removing a located item from the container Displaying the sorted list of items, detailing their attributes The example provided in class modeled a "Bag of Pets n the way described above. Other ideas of application that can be designed using a container of items include A Pet Hospital, where adding and removing an item would mean admitting and releasing a pet A Rental Store, where inventory items can be rented and returned, and which would carry two related types of items (books and videos, or cars and trucks, skis and snowboards, etc.) A Temp Agency, where you hire or release temporary employees The "items" will have several attributes in common (a unique Serial Number/ID/tag, a name, a description, etc.) inherited from a base class, and also additional attributes and behaviors specific to item types

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

3319712721, 978-3319712727

More Books

Students also viewed these Databases questions