Question: CS 2 1 1 - Term Project - Spring ' 2 4 . pdf CS 2 1 1 : Programming 2 Shape Hierarchy Term Project

CS211- Term Project - Spring '24.pdf
CS211: Programming 2
"Shape Hierarchy" Term Project
Due Date: Thursday May 16th, @ 2 pm
Description: Apply what you have learned in OOP, Inheritance, Polymorphism and Files I/O techniques to build the above shown Shape hierarchy. For all classes we need to store the following information:
All shapes (2D and 3D) must use overloaded comparison operators functions to compare if any object is less, greater, or equal to other objects of the same type in terms of area, perimeter, surfaceArea, volume attribute values,
readData(), print(), printToFile(ofstream &output), readFromFile(ifstream &input) functions must be implemented in all classes (base and derived), taking into consideration they will be used for polymorphism,
computeArea() and computePerimeter() functions must be implemented in all 2D shape classes (including their base class), taking into consideration their use in polymorphism,
computeSurfaceArea() and computeVolume() functions must be implemented in all 3D shape classes (including their base class), taking into consideration their use in polymorphism,
 CS211- Term Project - Spring '24.pdf CS211: Programming 2 "Shape Hierarchy"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!