Answered step by step
Verified Expert Solution
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
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