Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Perform the following tasks before your demo. Use VS Code to generate and display the code files. Create another main file called shape _ main.cpp

Perform the following tasks before your demo. Use VS Code to generate and display the code files.
Create another main file called shape_main.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 shape_main.cpp. Compile the code into an executable called shape_area_calculator
To gain full credit, your project should feature the following:
The repository should have the appropriate files from part 1 and the submission (excluding executables).
shape_main.cpp should perform input validation and reject invalid values (for example, less than 0 or letters for dimension).
When demoing, the machine used to display the code should have VS Code open and connected to the CS100 server. Have the Cmake file, shape_main.cpp, triangle.hpp and triangle.cpp files open. During your demo, you will walk the TA through your code, compile, and run it.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions