Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Programming prjt Using FUNCTIONS, write a C++ program that calculates the Area of a circle, a square and a rectangle. Your program must prompt the

image text in transcribed
Programming prjt Using FUNCTIONS, write a C++ program that calculates the Area of a circle, a square and a rectangle. Your program must prompt the user to select which area is to be calculated. Document your program. Apply the do while loop to repeat the program. Apply the while loop for input validation. he switch statements or the if/ else if statement to prompt the user for the area's selection. Based on your selection each choice enables the user to calculate a different area. Late assignments will not be accepted. Your formatted output must include the input info as well as the results in a readable format Finding the Area of a Circle How to find the area of a circle: The area of a circle can be found by multiplying pi (which is equal to 3.14) by the square of the radius If a circle has a radius of 4, its area is 3.14*4*4-50.24 If you know the diameter, the radius is 1/2 as large. Calculating the Area of a Square How to find the area of a square: The area of a square can be found by multiplying the base times itself. This is similar to the area of a rectangle, but the base is the same length as the height. If a square has a base of length 6 inches its area is 6'6-36 square inches Calculating the Area of a Rectangle How to find the area of a rectangle: The area of a rectangle can be found by multiplying the base times the height. If a rectangle has a base of length 6 inches and a height of 4 inches, its area is 6*4-24 square inches

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

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions

Question

Distinguish abandoned property from lost property.

Answered: 1 week ago

Question

If R1 = 4k , R2 = 8k and I = 6k What are I1 and I2? \f

Answered: 1 week ago

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago