Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer it in python also I need to copy the code In-Lab Assignment #2 Write a python program that asks the user to enter

please answer it in python also I need to copy the code image text in transcribed
In-Lab Assignment #2 Write a python program that asks the user to enter the first letter of a geometric shape and then your program should calculate and display the following for the selected geometric shape: The Area of the geometric shape - The perimeter of the geometric shape The options displayed for the user should be: 1. Rectangle 2. Circule 3. Square 4. Triangle 5. Parallelogram If the user selects square or rectangle also display two options to allow the user to decide if he/she wants to draw the shape in the output screen: Option 1: 'Y' ===> Draw the shape Option 2: 'N' ===> Don't draw the shape Hints: Your program must display an error message to indicate that the user entered a character other than 'R,7.'C. 'd', 'S', 's', 'T', 'P','P' or 'p' Based of the selected shape, as the user to. Input the required values for the Area and perimeter calculations Use the if/elif statement to decide which formulas to be used. Use online resources to get the formulas of geometric shapes Area and Perimeter. MacBook Pro

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

Practice the three Cs (Competence, Courtesy and Consideration).

Answered: 1 week ago

Question

What are the different techniques used in decision making?

Answered: 1 week ago

Question

3. Is IBMs program really a mentoring program? Why or why not?

Answered: 1 week ago