Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION 1 [10 MARKS] Write a program that will calculate area for plane shapes. User will be prompted with a menu to choose the shape
QUESTION 1 [10 MARKS] 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 Area Formula |xbxh I w h Parameters b=base, h=height | w width, h a-length of side height pie = 3.142, r = radius | plex radius
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started