Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

More Books

Students also viewed these Databases questions

Question

Discuss the key ambient conditions and their effects on customers.

Answered: 1 week ago

Question

Understand the roles of signs, symbols, and artifacts.

Answered: 1 week ago