Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!