Governments around the world have been creating methods for managing their COVID-19 response. A large part of this response is strengthening preventative actions to avoid further spread of the virus. As a student in STU-BME, you have been tasked by the local government to create a community warning system that automatically informs people what actions they need to take based on the number of daily positive tests and total vaccinations to date: • If number of vaccinations to date is greater than 1000 times the number of daily positive tests, print: "Green: Live Normally" • If number of vaccinations is between 500 and 1000 (inclusive) times the number of daily positive tests, print: "Yellow: Wear Mask!" • If number of vaccinations is between 200 and 500 (inclusive) times the number of daily positive tests, print: "Orange: Wear Mask and Keep Distance!" • If number of vaccinations is less than 200 (inclusive) times the number of daily positive tests, print: "Red: STAY HOME!!!" Write a function that accepts as input parameters: (1) the number of daily positive tests and (2) the number of total vaccinations. The function also needs to print to the Command Prompt the community warning message, followed by a newline. Note that the function does NOT return any value and also that the input parameter values are already known when the function is called. You must use descriptive variable names and data types to receive full credit. #include #include / Write your function here

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%
C programming
Governments around the world have been creating methods for managing their
COVID-19 response. A large part of this response is strengthening preventative
actions to avoid further spread of the virus. As a student in STU-BME, you have
been tasked by the local government to create a community warning system that
automatically informs people what actions they need to take based on the number
of daily positive tests and total vaccinations to date:
• If number of vaccinations to date is greater than 1000 times the number of
daily positive tests, print: "Green: Live Normally"
• If number of vaccinations is between 500 and 1000 (inclusive) times the
number of daily positive tests, print: "Yellow: Wear Mask!"
• If number of vaccinations is between 200 and 500 (inclusive) times the
number of daily positive tests, print: "Orange: Wear Mask and Keep
Distance!"
• If number of vaccinations is less than 200 (inclusive) times the number of
daily positive tests, print: "Red: STAY HOME!!!"
Write a function that accepts as input parameters: (1) the number of daily positive
tests and (2) the number of total vaccinations. The function also needs to print to
the Command Prompt the community warning message, followed by a newline.
Note that the function does NOT return any value and also that the input
parameter values are already known when the function is called.
You must use descriptive variable names and data types to receive full credit.
#include <stdio.h>
#include <string.h>
/ Write your function here
Transcribed Image Text:Governments around the world have been creating methods for managing their COVID-19 response. A large part of this response is strengthening preventative actions to avoid further spread of the virus. As a student in STU-BME, you have been tasked by the local government to create a community warning system that automatically informs people what actions they need to take based on the number of daily positive tests and total vaccinations to date: • If number of vaccinations to date is greater than 1000 times the number of daily positive tests, print: "Green: Live Normally" • If number of vaccinations is between 500 and 1000 (inclusive) times the number of daily positive tests, print: "Yellow: Wear Mask!" • If number of vaccinations is between 200 and 500 (inclusive) times the number of daily positive tests, print: "Orange: Wear Mask and Keep Distance!" • If number of vaccinations is less than 200 (inclusive) times the number of daily positive tests, print: "Red: STAY HOME!!!" Write a function that accepts as input parameters: (1) the number of daily positive tests and (2) the number of total vaccinations. The function also needs to print to the Command Prompt the community warning message, followed by a newline. Note that the function does NOT return any value and also that the input parameter values are already known when the function is called. You must use descriptive variable names and data types to receive full credit. #include <stdio.h> #include <string.h> / Write your function here
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Introduction to computer system
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education