Please Use MATLAB   You work for a government entity and have been tasked with processing information about vaccine supply needs. Vaccines are being distributed to people in 5 phases, based on their age, pre-existing conditions, and jobs that place them at risk. Vaccines must be distributed in 2 doses. You have information about the following: - Anonymous information from people in the vaccine site’s region: o The phase that they are eligible for. o Whether they have had 0, 1, or 2 doses of the vaccine. o How many days it has been since the last dose of the vaccine for an individual. - The number of vaccine doses that will be available each day. You have been tasked with determining a distribution plan for determining which individuals will get the vaccine on a given day. Procedure Write a function that takes 2 inputs: - A 3xN matrix of data on people in the region. Each column represents a different person. o Row 1 is eligibility. o Row 2 is how many doses they have received o Row 3 is how many days it has been since their last dose. Those who haven’t had any vaccine doses will have a -1 in this row. - The number of vaccines available on a day The function should return one output: - A 1xN array containing either 1 or 0. o 1 represents an individual who is to receive a vaccine dose o 0 represents an individual who will not receive a vaccine dose Column indices in your input matrix and output array represent the same individuals. The number of 1’s in your output array should always be equal to the number of vaccines available that day. Your function should prioritize lower phase numbers for receiving a vaccine.Your function should prioritize first doses over second doses for people in the same phase. You function should only give vaccines to individuals who have received fewer than 2 doses. Your function should not give vaccines to individuals who have received a vaccine dose within the last 21 days. If two people are at the same phase, have the same number of doses, and are able to receive a vaccine today, but there is only 1 dose left for that day, give the vaccine to the person with the lower column index.   Please create two samples of test data. They can be small.   Call your program with the data from this csv file as your data input, and the number of vaccines listed on the table  This is the data  1 1 1 2 5 5 1 2 3 3 4 4 2 3 1 5 1 1 2 1 3 2 5 5 1 4 2 3 3 5 3 5 2 4 4 3 4 4 1 1 5 1 1 3 5 4 1 2 3 5 1 5 4 2 1 3 3 1 3 2 2 3 2 2 4 2 5 5 4 2 3 1 5 5 5 2 3 1 3 2 1 1 3 1 3 3 4 4 4 1 1 2 3 1 1 2 2 2 1 0 0 1 2 1 0 0 0 0 1 1 1 2 1 2 1 2 0 2 0 2 2 0 0 0 2 2 1 2 2 0 1 1 2 0 1 1 1 2 0 2 1 0 0 2 1 0 1 1 0 2 0 2 0 2 0 0 0 1 2 1 1 1 1 2 1 2 0 2 0 0 1 1 1 1 2 1 1 1 2 2 0 1 1 1 2 0 19 7 57 39 29 38 -1 -1 33 43 31 -1 -1 -1 -1 3 24 27 22 46 38 47 56 -1 11 -1 42 5 -1 -1 -1 29 24 40 45 31 -1 9 35 15 -1 46 14 26 41 -1 44 24 -1 -1 26 1 -1 25 16 -1 50 -1 54 -1 46 -1 -1 -1 23 13 48 57 19 40 26 50 46 -1 52 -1 -1 53 35 9 12 24 45 50 48 19 32 -1 6 8 41 30 -1   Number of Vaccines   Last Name Initial Number of Vaccines A 15 B 14 C 13 D 12 E 11 F 15 G 14 H 13 I 12 J 11 K 15 L 14 M 13 N 12 O 11 P 15 Q 14 R 13 S 12 T 11 U 15 V 14 W 13 X 12 Y 11 Z 10 What are the index numbers of individuals who received the vaccine?

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
Please Use MATLAB
 
You work for a government entity and have been tasked with processing information about vaccine
supply needs. Vaccines are being distributed to people in 5 phases, based on their age, pre-existing
conditions, and jobs that place them at risk. Vaccines must be distributed in 2 doses. You have
information about the following:

- Anonymous information from people in the vaccine site’s region:

o The phase that they are eligible for.
o Whether they have had 0, 1, or 2 doses of the vaccine.
o How many days it has been since the last dose of the vaccine for an individual.
- The number of vaccine doses that will be available each day.

You have been tasked with determining a distribution plan for determining which individuals will get the
vaccine on a given day.

Procedure
Write a function that takes 2 inputs:
- A 3xN matrix of data on people in the region. Each column represents a different person.
o Row 1 is eligibility.
o Row 2 is how many doses they have received
o Row 3 is how many days it has been since their last dose. Those who haven’t had any
vaccine doses will have a -1 in this row.
- The number of vaccines available on a day

The function should return one output:
- A 1xN array containing either 1 or 0.
o 1 represents an individual who is to receive a vaccine dose
o 0 represents an individual who will not receive a vaccine dose

Column indices in your input matrix and output array represent the same individuals.
The number of 1’s in your output array should always be equal to the number of vaccines available that
day.
Your function should prioritize lower phase numbers for receiving a vaccine.Your function should prioritize first doses over second doses for people in the same phase.
You function should only give vaccines to individuals who have received fewer than 2 doses.
Your function should not give vaccines to individuals who have received a vaccine dose within the last
21 days.
If two people are at the same phase, have the same number of doses, and are able to receive a vaccine
today, but there is only 1 dose left for that day, give the vaccine to the person with the lower column
index.
 
Please create two samples of test data. They can be small.
 
Call your program with the data from this csv file as your data input, and the number of vaccines
listed on the table 
This is the data 
1 1 1 2 5 5 1 2 3 3 4 4 2 3 1 5 1 1 2 1 3 2 5 5 1 4 2 3 3 5 3 5 2 4 4 3 4 4 1 1 5 1 1 3 5 4 1 2 3 5 1 5 4 2 1 3 3 1 3 2 2 3 2 2 4 2 5 5 4 2 3 1 5 5 5 2 3 1 3 2 1 1 3 1 3 3 4 4 4 1 1 2 3
1 1 2 2 2 1 0 0 1 2 1 0 0 0 0 1 1 1 2 1 2 1 2 0 2 0 2 2 0 0 0 2 2 1 2 2 0 1 1 2 0 1 1 1 2 0 2 1 0 0 2 1 0 1 1 0 2 0 2 0 2 0 0 0 1 2 1 1 1 1 2 1 2 0 2 0 0 1 1 1 1 2 1 1 1 2 2 0 1 1 1 2 0
19 7 57 39 29 38 -1 -1 33 43 31 -1 -1 -1 -1 3 24 27 22 46 38 47 56 -1 11 -1 42 5 -1 -1 -1 29 24 40 45 31 -1 9 35 15 -1 46 14 26 41 -1 44 24 -1 -1 26 1 -1 25 16 -1 50 -1 54 -1 46 -1 -1 -1 23 13 48 57 19 40 26 50 46 -1 52 -1 -1 53 35 9 12 24 45 50 48 19 32 -1 6 8 41 30 -1
 
Number of Vaccines  
Last Name Initial Number of
Vaccines
A 15
B 14
C 13
D 12
E 11
F 15
G 14
H 13
I 12
J 11
K 15
L 14
M 13
N 12
O 11
P 15
Q 14
R 13
S 12
T 11
U 15
V 14
W 13
X 12
Y 11
Z 10
What are the index numbers of individuals who received the vaccine?
 
 
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps

Blurred answer
Knowledge Booster
Business Intelligence Analytics tools and techniques
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
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