Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a ParentBot that asks 4 questions. Every time you say yes, then your points increase by one. The questions are: 1. Did you

Write a ParentBot that asks 4 questions. Every time you say yes, then your points increase by one. The questions are: 1. Did you eat? 2. Did you study? 3. Did you do your laundry? 4. Did you call grandma? At the end, ParentBot will reply to you as follows: O points: I'm coming over. 1-2 points: Ok. 3-4 points: Good! Your code should a) use a loop and b) at least one comparison operator < > =, Also, if the user enters anything besides "yes" or "no", there will be 0 points and the program should not crash or stop working in these situations. Sample Output Did you eat? no Did you study? no Did you do your laundry? no Did you call grandma? no I'm coming over. Did you eat? yes Did you study? yes Did you do your laundry? yes Did you call grandma? yes Good! Did you eat? yes Did you study? no Did you do your laundry? yes Did you call grandma? Hmm.. Ok. Deliverable: Upload the Python source file with filename main.py to space under this question.

Step by Step Solution

3.36 Rating (152 Votes )

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

Essentials Of Statistics For The Behavioral Sciences

Authors: Susan A. Nolan

3rd Edition

1464107777, 978-1464107771

More Books

Students also viewed these Programming questions

Question

Where do your students find employment?

Answered: 1 week ago

Question

How a member of council can join union?

Answered: 1 week ago

Question

What are the three diff erent F statistics in a two-way ANOVA?

Answered: 1 week ago