Question: Write a function, bobs_fun_day(), that uses a while loop to ask Bob to input what he did during every hour of his day. These are

Write a function, bobs_fun_day(), that uses a while loop to ask Bob to input what he did during every hour of his day. These are the following allowed inputs: S for study N for nap G for gym Bob, being an ideal student, wakes up at 8 am and goes to sleep at midnight (So he already starts with 8 hours of sleep.) Bob does every activity for exactly two hours. So after every 2 hours ask Bob what he will do for the next two. If Bob doesn't input anything or inputs something other than the activities mentioned above that means he is wasting his time. Be sure to yell at him "Bob, stop wasting your time

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 Mathematics Questions!