Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem Write a Python script that will: 1. Input a daily COVID-19 case count from the user. 2. Every seven days: a. Output the string
Problem Write a Python script that will: 1. Input a daily COVID-19 case count from the user. 2. Every seven days: a. Output the string 7-day average: X, where x is the seven-day average rounded to the nearest integer. b. Compare this average to last week's average: If this week's average is higher, print Average is higher than last week If this week's average is lower, print Average is lower than last week If this week's average is the same, print Average is the same as last week If this is the first week, don't print anything 3. Stop when the user enters an empty string for a case number. o If stopping in the middle of a week, print the current week's average as N-day average: X, where N is the number of days in the week so far and x is the average o Also compare this average to last week's average, as above
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