Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please type the entire code in comment so i can copy. thank you Numro A (7 points) Write a program in C H allowing you

image text in transcribed
please type the entire code in comment so i can copy. thank you
Numro A (7 points) Write a program in C H allowing you to enter a character representing the code of a geometric figure among: 'c' or 'C' for a cercle 'T' or 'R' pour a rectangle 'k' or 'K' for a square Depending on the figure, we enter its coordinates (the radius of the circle case or the side of the square case or...), we calculate and display the perimeter and the area according to the formulas in the following table: Figure Coordinates Perimeter Area Cercle radius 2 x PI x radius PI x radius x radius Rectangle lenght, width 2x (lenght + width) lenght x width Square side 4x side side x side PI is a real type constant which is equal to 3.14159 The program allows to process several figures as long as the user decides to continue. We count and display the total number of rectangles processed. We determine and display: - the average surface of the treated rectangles. - the largest perimeter of the circles treated - the smallest surface of the treated rectangles. - the smaller side of the treated squares (If a figure does not exist, an appropriate message should be displayed Data for the delivery (you can use what you want, but this will be easier) - circle of radius 7.1 - rectangle of length 9.2 and width 6.8 - circle of radius 8.3 - rectangle of length 5.7 and width 3.3 - circle of radius 3.5 - rectangle of length 15.1 and width 5.9 Correction criteria for the A number: - Correct operation using, among others, the switch, loop, struct basic statistics (don't use advanced thing like vectors. It's supposed to be easy... Do this homework by using this only : #include / #include / using namespace std; You can also use class{} if you want

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

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

0764549634, 9780764549632

More Books

Students also viewed these Databases questions