Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

Why are randomized block designs used?

Answered: 1 week ago