Question: Create another main file called shape _ main.cpp . In this one, the user will be prompted to choose a rectangle or a triangle. Followed
Create another main file called shapemain.cpp In this one, the user will be prompted to choose a rectangle or a triangle. Followed by a prompt asking for height and width if it is a rectangle, base instead of width if it is a triangle. Then, it will return the area for the chosen shape and dimensions.
Create a new triangle.hpp and triangle.cpp that supports the functionality of shapemain.cpp Compile the code into an executable called shapeareacalculator
To gain full credit, your project should feature the following:
The repository should have the appropriate files from part and the submission excluding executables
shapemain.cpp should perform input validation and reject invalid values for example, less than or letters for dimension
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
