ance, the health community has determined that a particular virus spreads 9 people around the world every five days. The health experts need a prog em determine how many people will have contracted a particular virus wit (assume there are an average of 30 days in one month) so that they can pla se personal protective equipment. he program that implements a loop in a program to report (display) to thel ionals how many people will have the virus after each five-day period durir onth (i.e., day 5, day 10, day 15, etc.) based on the number of individuals in they run the report. The report will output the total number of individuals ed to be infected for the next six periods (one report each 5 days for 30 day Create a new project called VirusReadiness and code the program so that i following functionality: A menu so that the user can select the name of a virus The menu

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
In this activity, you will create a C++ program that will help a member of the health
community plan and prepare for a virus outbreak. This program will help them determine
how many people will have a specific virus within the next 30 days.
For instance, the health community has determined that a particular virus spreads to
1437.39 people around the world every five days. The health experts need a program to
help them determine how many people will have contracted a particular virus within one
month (assume there are an average of 30 days in one month) so that they can plan to
purchase personal protective equipment.
Write the program that implements a loop in a program to report (display) to the health
professionals how many people will have the virus after each five-day period during the
next month (i.e., day 5, day 10, day 15, etc.) based on the number of individuals infected o
the day they run the report. The report will output the total number of individuals
projected to be infected for the next six periods (one report each 5 days for 30 days).
1. Create a new project called VirusReadiness and code the program so that it has the
following functionality:
i. A menu so that the user can select the name of a virus. The menu should
have 3 viruses they can choose from.
ii. The user should select an "integer" as the menu selection.
1
ii. If the user selects an integer outside of the range of values, the program
should display a message that the user entered an invalid value and prompt
the user to re-enter a proper value and give them the opportunity to enter
another value.
2. Implement a loop in the program so that it will generate the values for the report.
• The report should only output the values for one user choice at a time.
• The report should display the project period (week) and the number of people
projected to be infected with the virus for each period.
Input
• Prompt for the virus selection.
Prompt for the number of individuals infected per day.
Output
• The virus name.
• Number of people infected per day (entered by the user).
• The report period (week #).
The running total of individuals infected each five-day period. There will be 6
periods (weeks) reported.
Transcribed Image Text:In this activity, you will create a C++ program that will help a member of the health community plan and prepare for a virus outbreak. This program will help them determine how many people will have a specific virus within the next 30 days. For instance, the health community has determined that a particular virus spreads to 1437.39 people around the world every five days. The health experts need a program to help them determine how many people will have contracted a particular virus within one month (assume there are an average of 30 days in one month) so that they can plan to purchase personal protective equipment. Write the program that implements a loop in a program to report (display) to the health professionals how many people will have the virus after each five-day period during the next month (i.e., day 5, day 10, day 15, etc.) based on the number of individuals infected o the day they run the report. The report will output the total number of individuals projected to be infected for the next six periods (one report each 5 days for 30 days). 1. Create a new project called VirusReadiness and code the program so that it has the following functionality: i. A menu so that the user can select the name of a virus. The menu should have 3 viruses they can choose from. ii. The user should select an "integer" as the menu selection. 1 ii. If the user selects an integer outside of the range of values, the program should display a message that the user entered an invalid value and prompt the user to re-enter a proper value and give them the opportunity to enter another value. 2. Implement a loop in the program so that it will generate the values for the report. • The report should only output the values for one user choice at a time. • The report should display the project period (week) and the number of people projected to be infected with the virus for each period. Input • Prompt for the virus selection. Prompt for the number of individuals infected per day. Output • The virus name. • Number of people infected per day (entered by the user). • The report period (week #). The running total of individuals infected each five-day period. There will be 6 periods (weeks) reported.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY