Question: ANSWER IN C++ FORMAT ONLY USING VISUAL STUDIO COMMUNITY 2019!!! Scenario You are a Covid hotel quarantine advisor, and have been tasked with testing a

ANSWER IN C++ FORMAT ONLY USING VISUAL STUDIO COMMUNITY 2019!!!

ANSWER IN C++ FORMAT ONLY USING VISUAL STUDIO COMMUNITY 2019!!! Scenario Youare a Covid hotel quarantine advisor, and have been tasked with testing

Scenario You are a Covid hotel quarantine advisor, and have been tasked with testing a new procedure to deal with quarantine leakage. The protocol to be followed by the hotel based on the new procedure is described below: 1. A new patient arrives every two weeks - Assume 50% chance a patient arrives at the hotel with Covid 2. One staff member is dedicated to each patient. 3. Staff members and patients will be tested daily for Covid infection. - Assume 5 % chance Covid is missed by test. 4. If a patient tests Covid positive: - Move the patient to Covid secure isolation facility 5. If a staff member tests positive: Instruct staff member to isolate at home until free of Covid Replace the staff member with a new Covid negative staff member 6. After 14 days, release patient. Following are the probability for Covid transmission within the hotel due to various reasons. 1. Patients and staff members have a 1% chance of contracting Covid each day from other infected patients or staff members in the hotel, via the air-conditioning system. 2. Patient and the respective staff member assigned have a 1% chance of contracting Covid each day from direct contact with one another. 3. Patient has a 20 % chance of transmitting Covid to the respective staff member assigned while being moved to the secure isolation facility. Following are the probability for Covid transmission to the general public by staff members and patients leaving the hotel: 1. An infected staff member has a 50 % chance of transmitting Covid to general public each day when not isolating. 2. Infected patients that have been released without detection have a 50 % chance of transmitting Covid to general public. The figure below shows a flow chart of the hotel quarantine procedure and desired simulation. Release patients Simulate public transmission N Patients arrive Day > 147 Simulate aircon transmission Simulate public transmission Simulate direct transmission Move to isolation N Test Patients Covid Positive N Test Staff Covid Positive? Simulate staff transmission Move to isolation Write a program (using the skeleton code provided) to simulate the new procedure for a single patient and staff member and estimate the chances of Covid being transmitted to the public (Run 10000 trials, and report the result as the number of trials which predicted Covid to be transmitted to the public divided by the total number of trials). Scenario You are a Covid hotel quarantine advisor, and have been tasked with testing a new procedure to deal with quarantine leakage. The protocol to be followed by the hotel based on the new procedure is described below: 1. A new patient arrives every two weeks - Assume 50% chance a patient arrives at the hotel with Covid 2. One staff member is dedicated to each patient. 3. Staff members and patients will be tested daily for Covid infection. - Assume 5 % chance Covid is missed by test. 4. If a patient tests Covid positive: - Move the patient to Covid secure isolation facility 5. If a staff member tests positive: Instruct staff member to isolate at home until free of Covid Replace the staff member with a new Covid negative staff member 6. After 14 days, release patient. Following are the probability for Covid transmission within the hotel due to various reasons. 1. Patients and staff members have a 1% chance of contracting Covid each day from other infected patients or staff members in the hotel, via the air-conditioning system. 2. Patient and the respective staff member assigned have a 1% chance of contracting Covid each day from direct contact with one another. 3. Patient has a 20 % chance of transmitting Covid to the respective staff member assigned while being moved to the secure isolation facility. Following are the probability for Covid transmission to the general public by staff members and patients leaving the hotel: 1. An infected staff member has a 50 % chance of transmitting Covid to general public each day when not isolating. 2. Infected patients that have been released without detection have a 50 % chance of transmitting Covid to general public. The figure below shows a flow chart of the hotel quarantine procedure and desired simulation. Release patients Simulate public transmission N Patients arrive Day > 147 Simulate aircon transmission Simulate public transmission Simulate direct transmission Move to isolation N Test Patients Covid Positive N Test Staff Covid Positive? Simulate staff transmission Move to isolation Write a program (using the skeleton code provided) to simulate the new procedure for a single patient and staff member and estimate the chances of Covid being transmitted to the public (Run 10000 trials, and report the result as the number of trials which predicted Covid to be transmitted to the public divided by the total number of trials)

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!