Question: 3.3.1 Task 3-1: Shape Area Write a C program that calculates the area for different shapes Square, Rectangle, or Triangle. The program will ask the

 3.3.1 Task 3-1: Shape Area Write a C program that calculates

3.3.1 Task 3-1: Shape Area Write a C program that calculates the area for different shapes Square, Rectangle, or Triangle. The program will ask the user to choose one of three shapes to calculate the area for that shape. The menu should look as follow: 1-Square 2-Rectangle 3-Triangle Please choose the shape to calculate area for: Based on the shape choice, your program will ask the user for that shape's parameters, calculate the area, and print it on the screen. For a square with side x, the area is given by x2 For a rectangle with sides x and y , the area is given by x x y. E For a Triangle with base b and height h, the area is given by = X X X. bxh 2 ODA

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!