Question
You have a prized vegetable garden in your backyard but are worried about the water levels. You work a significant distance from your house and
You have a prized vegetable garden in your backyard but are worried about the water levels. You work a significant distance from your house and are unsure if it rains on your garden during the day, so you do not know if your garden needs watered or not. You install a rain sensor in your garden, which can answer the True/False question of whether it rained during the day. Write a program that will print out a warning message and stop sensing if it does not rain for 3 days in a row.
Sample Output
It rained today? True
It rained today? True
It rained today? False
It rained today? True
It rained today? False
It rained today? False
It rained today? False
Quick! Water your garden before all the plants die and you starve to death!
use Python
Step by Step Solution
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