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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!