Question: please I need this task in object oriented programming with C++ language CS213: Programming II Lab 7: Multiple Inheritance Task1: Simulate the following problem using

please I need this task in object oriented programming with C++ language
CS213: Programming II Lab 7: Multiple Inheritance Task1: Simulate the following problem using inheritance: Assume that you have a list of Shapes that we need to calculate their area. Any shape has area that can be calculated based on shape type. For example, the area of rectangle = width * height, the area of the square = width* width. So, it is required to implement Shape, Rectangle, and Square using Inheritance. In the main method, it is required to define an array of Shapes and ask the user about: - Number of shapes - Type of each one (e.g., Rectangle or Square) And calculate the area of each one and display it. Can you expect the output from your code? Is the calculated area right? If No, how to solve this problem? Hint: virtual
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
