Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

   

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 b= base, h= height Area Formula xbxh wxh w = width, h = height a = length of side pie = 3.142, r = radius pie x radius

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Sure Heres a Python program that implements the area calculator for various plane shapes based on th... 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_2

Step: 3

blur-text-image_3

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

Introduction to Java Programming, Comprehensive Version

Authors: Y. Daniel Liang

10th Edition

133761312, 978-0133761313

More Books

Students also viewed these Programming questions