Write a ParentBot that asks 4 questions. Every time you say yes, then your points increase...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Related Book For
Essentials of Statistics for the Behavioral Sciences
ISBN: 978-1464107771
3rd edition
Authors: Susan A. Nolan
Posted Date:
Students also viewed these programming questions
-
FIGURE 24-5 2F H 3F 4F 6F HE 90V Four capacitors are connected across a 90-V DC source as shown in Fig. 24-5. (a) What is the charge on the 4.0-F capacitor? (b) What is the charge on a 2.0-F...
-
According to the data below briefly interpret the profitability, liquidity and growth of the company(A) (ROA) - 2021 : 10% 2020 4% (ROE)- 2021: 18% 2020 : %9 ROS GROSS MARGEN- 2021 : 34% 2020: 31%...
-
Every time I think Ive captured user information requirements, theyve already changed. Its like trying to hit a moving target. Half the time, I dont think they even know what they want themselves,...
-
Which of the following would be the most frequently occurring daily transaction in a retail shop? (a) Paying salary to the sales assistant (b) Sale of goods (c) Payment of rent for the shop premises...
-
In trials of an experimental Internet-based method of learning statistics, pre-tests and post- tests were given to two groups: traditional instruction (22 students) and Internet-based (17 students)....
-
Garcia Corporation purchased a truck by issuing an $80,000, 4-year, zero interest-bearing notes to Equinox Inc. The market rate of interest for obligations of this nature is 10%. Prepare the journal...
-
A test of homogeneity is performed and the null hypothesis is rejected. True or false: We can conclude that the distributions are not the same in every row.
-
Use the following information from separate companies a through f to compute times interest earned. Which company indicates the strongest ability to pay interest expense as it comes due? (Round...
-
1. Identify one factor that influences how long a competitive advantage lasts. Provide one company example to explain why and how this factor influences the duration of the company's competitive...
-
Express Co. purchased equipment on March 1, 2015, for $95,000 on account. The equipment had an estimated useful life of five years, with a residual value of $5,000. The equipment is disposed of on...
-
Write a paper in which you: Research the aspects below of COSTCO'S organization: -Power -Political factors -Ethics -Conflict resolution -Negotiation strategies -Change -Stress -Stress management...
-
In what sense is FOGA a raising rivals cost case? How is a raising rivals cost case different from a cartel case involving cooperation? What do the two have in common?
-
Please fill in the cells indicated in red, bold font. N I PV PMT FV in in $ 10 5% 50.00 $ 1,000.00 9/16/2021 9/15/2031 Yields 3% 4% 5% 6% 7% 8% 9% 10% 11% 12% Prices Duration 8.27 8.19 8.11 8.02 7.93...
-
1 . Specific tariffs are A ) import taxes stated in specific legal statutes. B ) import taxes calculated as a fixed charge for each unit of imported goods. C ) import taxes calculated as a fraction...
-
Evaluate the following exponent and round to 2 decimal places if necessary. (144/289)1/2
-
Who was the law of agency in Terri Schiavo's case? Which organization was liable for taking care of Terri Schiavo ?
-
The position function of a particular particle is given by f(t) = -t + 4t + 8. Assume that it is defined for t. (a) What is the velocity function of the particle? f'(t) = (b) What is the velocity of...
-
Based on the scenario described below, generate all possible association rules with values for confidence, support (for dependent), and lift. Submit your solutions in a Word document (name it...
-
Hugenberg, Miller, and Claypool (2007) conducted a study to better understand the cross-race effect, in which people have a difficult time recognizing members of different racial groupscolloquially...
-
How safe are convertibles? USA Today (Healey, 2006) examined the pros and cons of convertible automobiles. The Insurance Institute for Highway Safety, the newspaper reported, determined that,...
-
What are the three diff erent F statistics in a two-way ANOVA?
-
A part of a mechanism which operates a horizontally sliding block \(E\) is shown in Fig.3.23(a). In the given configuration, the lever \(O B\) swings about \(O\) in the clockwise direction with an...
-
In the mechanism shown in Fig.3.21(a), the link \(O_{1} A\) rotates at \(24 \mathrm{rad} / \mathrm{s}\). Find the velocity and acceleration of point \(B\). \(O_{1} A=75 \mathrm{~mm}, A B=200...
-
A double slider-crank mechanism is shown in Fig.3.22(a). Crank 2 rotates at constant angular speed \(\omega_{2}=10 \mathrm{rad} / \mathrm{s}\). Determine the velocity and acceleration of each slider....
Study smarter with the SolutionInn App