Question: Write a program on Python that will use the results of 3 questions to decide whether the phone should be answered or not according to

 Write a program on Python that will use the results of

Write a program on Python that will use the results of 3 questions to decide whether the phone should be answered or not according to the logic shown. Display a message stating the final decision. The 3 questions will ask the user if they are asleep, if it is their mom calling, and if it is morning. These questions should accept "yes" or "no" as an answer. You may assume that the input will be correctly formatted. You can choose when to ask the questions, they do not all have to asked at the start. (You do not need to create any code for the "Cell Phone Rings" step.

Start Cell Phone Rings Morning? No- Answer lt Asleep? Mom calling? Yes Yes fes Answer It Don't Answer Don't Answer Display Message End

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!