Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in c programming Write a program that will calculate area for plane shapes. User will be prompted with a menu to choose the shape they

image text in transcribed

in c programming

Write a program that will calculate area for plane shapes. User will be prompted with a menu to choose the shape they want to calculate. The program prompts user for input data required for the calculation such as base, height and width. The program then display area of the shapes and prompt the user whether they want to continue or exit. The program will only stop if the user chooses to exit by entering N. Sample output is shown below: Area Calculator for Plane Shapes Choose the shape below by entering the number 1. Triangle 2. Rectangle 3. Square 4. Circle Enter your choice:1 Please enter the following information Base: 4 Height:8 The area of triangle is 16 Do you want to continue(Y/N)? N Thank you for using the calculator Formula for area calculation: Shapes Triangle Rectangle Square Circle Parameters Area Formula b = base, h height | b h width, h height I w h a length of side pie = 3.142, r = radius | plex radius | w

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

Students also viewed these Databases questions

Question

Effective Delivery Effective

Answered: 1 week ago