Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
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
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started