Please finish up your program from yesterday. It should start with a welcome message, then ask for the type of shape. According to the shape given, it should give the area in a neatly formatted way. Don't forget to add comments!
If the user gives a shape that is not recognized, you should give a message listing the shapes that are valid and give them the opportunity to try again.
When you are done, save the file as: area_[name].py into the class "python\area programs\" folder. (replace [name] with your first name!)
As a bonus, add a while loop that allows you to find the area of multiple shapes.
You can also add abbreviations for the shapes so the user doesn't have to type the full name in. (But they should also be able to type the full name as well).
Once you are done, you may play around with some of the things you've been learning.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment