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

Principles of Information Systems (MindTap Course List)
13th Edition
ISBN:9781305971776
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter13: Cybercrime And Information System Security
Section: Chapter Questions
Problem 2CE
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781337097536
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Management Of Information Security
Management Of Information Security
Computer Science
ISBN:
9781337405713
Author:
WHITMAN, Michael.
Publisher:
Cengage Learning,