Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write the Python module Project4 that asks the user to input their weight in lbs. as an integer and then prints a message according to
Write the Python module Project4 that asks the user to input their weight in lbs. as an integer and then prints a message according to this table:
Write the Python module Project4 that asks the user to input their weight in lbs. as an integer and then prints a message according to this table: II Weight 0 - 50 50 100 100 200 200 300 300 500 anything else Message "Eat more. "I hope you are short." "Quite average. "I hope you are tall." "Into sumo?" "You liar!" There are many ways to write this program; use lecture comments to determine a good way. Notice you will have to deal with a boundary problem - does 50 lbs. go with the first message or the second message? Handle this in a consistent way. Follow all style and documentation conventions. Turn in a listing of your source code, a sample run, and use this page as a cover sheet. Late assignments will not be accepted. Options: 1. Include an opening and a goodbye message. 2. Make your message output fancy by putting a border around it. Example Output: Please enter your weight in pounds: 0 Eat more. Please enter your weight in pounds: 51 I hope you are short. Please enter your weight in pounds: 101 Quite average. Please enter your weight in pounds: 201 I hope you are tall. Please enter your weight in pounds: 301 Into sumo? Please enter your weight in pounds: 501 You liar! Please enter your weight in pounds: -1 You liarStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started