I need help with a C++ programming assignment. I have attached the required files. The following is the description of the assignment:
Use the incomplete code skeleton provided and extend the Shape class by adding derived Rhombus, Pentagon, Octagon and Circle classes and the required behaviours. The Circle will require a little bit of creativity to implement within the provided framework. In most cases, code stubs provide you with a starting point while in the remaining cases you will have to add all the missing code.
Your abstract Shape class includes code that will allow you to draw a shape on a screen; placement here reduces the complexity of the program. The code contains comments specifying what you need to add . To demonstrate the use of the scaling and rotation behaviour and to earn marks for this functionality, you have to provide the functionality for at least one of the specific shapes.
Uncomment relevant code in the main function when you are ready to test the functionality of a particular class. This code will allow you to dynamically add shapes to a list and call the appropriate code for a given shape using dynamic polymorphism. Output a shape’s area and perimeter next to its centroid.
Carefully read the comments in the provided code and to include comments describing what you have added. Do not comment out existing code, but improve code for efficiency and maintainability where required.
I have done couple of academic projects in my college days in C++. I exactly know what professors are looking forward to.
I hail from IIT Kharagpur, Mathematics and Computing department and I have been working in the software industry for more than 3 years.