Question: Given the following CovidVictim, Node and Linkedlist ADTS: public class CovidVictim private String victimame private String caseid private int age private String clusterName // Teratai,

 Given the following CovidVictim, Node and Linkedlist ADTS: public class CovidVictim

Given the following CovidVictim, Node and Linkedlist ADTS: public class CovidVictim private String victimame private String caseid private int age private String clusterName // Teratai, Nibong & Lestari private String positiveDate // DDMYYYY e.g 08112020 /* All the accessor methods */ public void displayVictim(); class Node ( Covidvictim element; Node next public Node (CovidVictim element) {...} } I class Linkedlist private Node first, last, current public Linkedlist() (...) public Covidvictim getNext() {...) public CovidVictim getFirst (...) public Covidvictim getLast 1...) public CovidVictim remove FromBack() (...) public CovidVictim insertat Front() {...} Assumed all data have stored in a Linkedlist data structure named victimLL. Write a program segment to perform the followings: Assumed all data have stored in a Linkedlist data structure named victimit. Write a program segment to perform the followings: a) Find and display the detail of victims and the number of victims which were diagnosed positive covid for the fourth quarter of year 2020. b) Move all covid victims' which aged more than 50 years old from victiml into riskVictimli, while the others remain in victimi. (5 marks) c) Calculate and display the number of victims for each cluster from riskVictime. The output should be displayed based on the format shown below: TOTAL VICTIMS FOR EACH CLUSTER Cluster XXXXX No. of Victims XXX Given the following CovidVictim, Node and Linkedlist ADTS: public class CovidVictim private String victimame private String caseid private int age private String clusterName // Teratai, Nibong & Lestari private String positiveDate // DDMYYYY e.g 08112020 /* All the accessor methods */ public void displayVictim(); class Node ( Covidvictim element; Node next public Node (CovidVictim element) {...} } I class Linkedlist private Node first, last, current public Linkedlist() (...) public Covidvictim getNext() {...) public CovidVictim getFirst (...) public Covidvictim getLast 1...) public CovidVictim remove FromBack() (...) public CovidVictim insertat Front() {...} Assumed all data have stored in a Linkedlist data structure named victimLL. Write a program segment to perform the followings: Assumed all data have stored in a Linkedlist data structure named victimit. Write a program segment to perform the followings: a) Find and display the detail of victims and the number of victims which were diagnosed positive covid for the fourth quarter of year 2020. b) Move all covid victims' which aged more than 50 years old from victiml into riskVictimli, while the others remain in victimi. (5 marks) c) Calculate and display the number of victims for each cluster from riskVictime. The output should be displayed based on the format shown below: TOTAL VICTIMS FOR EACH CLUSTER Cluster XXXXX No. of Victims XXX

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!