Question: 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

 Write a python program that asks the user to enter the

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', '', 'C', 'c', '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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!