Question: 8. Write a program that will provide the user a menu from which the user may select to calculate the area of one of four
8. Write a program that will provide the user a menu from which the user may select to calculate the area of one of four geometric shapes: a circle, a rectangle, a triangle, and a trapezoid. You should use the most appropriate IF block for this program. The user will input all data needed to calculate the area. The program should output all data input by the user, the calculated area, and the geometric shape selected. Run this program using the following data: Run 1: Select circle and use a radius of 4.7 Run 2: Select rectangle and use length-15 and width-25 Run 3: Select triangle and use height-5 and base-2.5 Run 4: Select trapezoid and use height-7, a-12 and b-15 Run 5: Make a selection not allowed on your menu
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
