Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Due Date: CSC- 101 C++ programming language (Scientific Programming) Write a program to calculate the area of four shapes (Rectangle, Triangle, Circle and Square) The

image text in transcribed
Due Date: CSC- 101 C++ programming language (Scientific Programming) Write a program to calculate the area of four shapes (Rectangle, Triangle, Circle and Square) The program is to present the user with a menu where one of the shapes can be selected. Based on the selection made, the user enters the proper input, the program validates the input (i.e all entries must be greater than zero). Once the input is entered and validated, the intended area is calculated and the entered information Cout along with the area are displayed. Area of the Square Side A2 Area of the Rectangle = Length * width Area of the Triangle - Base Hight Area of the CirclePI RA Aie Se Switch Strot maut Pleasel You MUST apply the following to your program: 1) An iteise op a switch statement to present the selection menu 2) A loop to validate the input. 3) Formatted output. 4) Full documentation 5) The program is to rerun based on the user's request (a loop to restart). Hand in the following: a) b) A detailed and precise design in pseudocode. (design must match 1 to 1 with the source code) A FULLY documented source code. Screenshots of all output scenarios. c)

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

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

9. System creates a large, diverse talent pool.

Answered: 1 week ago