Question: A simple c++ program that asks for a value x, and gives areas of 3 shapes: a square a rectangle and a circle based on
A simple c++ program that asks for a value x, and gives areas of 3 shapes: a square a rectangle and a circle based on the value x.
so simply, the shape's areas can be easily defined by:
*square ACEG= 4x2
*area of rectangle is half area of square ACEG
* area of circle=x2
********Prompt should be pretty simple and would look like:
"This program calculates the area of a square, rectangle, and circle based on a value x.
Enter the value for x: 5
The area of the square with side 5 is 100.
The area of the rectangle with length 10 and height 5 is 50.
The area of the circle with radius 5 is 78.50. "
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
