Question: Question 3: (20 points) 2. Algorithm Write up: In the same vaccination clinic system, there is a linked list which contains all the registered patients.

 Question 3: (20 points) 2. Algorithm Write up: In the same

Question 3: (20 points) 2. Algorithm Write up: In the same vaccination clinic system, there is a linked list which contains all the registered patients. Write an algorithm that searches the linked list for patients who received the second dose of the vaccine and stores them in a new linked list. Head ID: 64300 VacStatus: Vaccinated Dose_1:0 Dose_2:0 ID: 54637 VacStatus: Vaccinated Dose_1:1 Dose_2:0 ID: 85746 VacStatus: Vaccinated Dose_1:0 Dose_2:0 Null Next ID: 43545 VacStatus: Vaccinated Dose_1:0 Dose_2:0 Next ID: 23234 VacStatus: Vaccinated Dose_1:1 Dose_2:1 Next ID: 65455 VacStatus: Vaccinated Dose_1:1 Dose_2:1 The output of the algorithm should print The patients who received the second dose of the vaccine are: 1. ID: 23234, VacStatus: Vaccinated, Dose_1:1, Dose 2:1 2. ID: 65455, VacStatus: Vaccinated, Dose 1:1 , Dose 2:1 Algorithm Input: The patients list Output: Display a list of the patients who received the second dose of the vaccine or display an appropriate message if no patient who took the second dose are found Method

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!