Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python code Problem 6: Write a Python application that requests from the user to enter the number of sides a certain geometrical shape has. The

python code image text in transcribed
Problem 6: Write a Python application that requests from the user to enter the number of sides a certain geometrical shape has. The shapes and the number of sides are listed in the below table: Line Number of Sides Shape 1 3 Triangle 4 Rectangle 5 Pentagon 6 Hexagon 7 Heptagon 8 Octagon 9 Nonagon 10 Decagon 12 Dodecagon Following the user's input, the application has to identify the corresponding shape and print to the user a message saying "A shape that has XX sides is a YYYYY." and then will skip a line and display the Pythonssssssssssssssssssssss prompt again. In the above message, the XX corresponds to the number of sides the user has entered and the YYYYY corresponds to the appropriate shape having XX sides. If the user enters a number of shapes that is not among the ones listed in the table above, the message "ERROR: Unrecognized Shape." must be displayed before the application terminates

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

Recommended Textbook for

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

Students also viewed these Databases questions

Question

Why is it expensive for a firm to grow?

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago