Professional Documents
Culture Documents
Flow:
So, let’s say, within the day, the Government gave the HNU HUB vaccines:
[1] Pfizer [2] Moderna [3] Sinovac [4] Astra [5] Janssen
200 120 500 300 50
So, there is an option where the user can add quantity to a specific vaccine brand.
[1] Pfizer [2] Moderna [3] Sinovac [4] Astra [5] Janssen
200 120 500 300 100
4. Accepting the number of vaccinee for slot allocation of daily schedule per brand.
So, let’s say, the first schedule has 150 people who are already vaccinated of the available
vaccine brands.
[1] Pfizer [2] Moderna [3] Sinovac [4] Astra [5] Janssen
200 120 350 300 100
Page 1 of 2
5. Sorting the remaining vaccines from highest to lowest.
[3] Sinovac [4] Astra [1] Pfizer [2] Moderna [5] Janssen
350 300 200 120 100
Searching for the highest inventory among the brands to check what vaccine to use within
the day. The most vaccines will be use within that schedule.
[3] Sinovac [4] Astra [1] Pfizer [2] Moderna [5] Janssen
350 300 200 120 100
7. Displaying the highest inventory vaccine brand and its quantity that can be used
within the day.
[3] Sinovac
350
Main()
arrayVaccine()
Index None [1] Pfizer [2] Moderna [3] Sinovac [4] Astra [5] Janssen
Number 0 1 2 3 4 5
0 0 0 0 0 0
inputVaccine(arrayVaccine);
Page 2 of 2