Can i please have help with this question in java, please . Java is the language java kind regars  Create a class called Citizen with the following attributes/variables: String citizenID ,String citizenName ,String citizenSurname ,String citizenCellNumber ,int registrationDay ,int registrationMonth ,int registrationYear  Create a class called Node with the following attributes/variables: Citizen citizen , Node nextNode   Create a class called CitizenRegister with the following attributes/variables: a. Node headNode b. int totalRegisteredCitizens  Add and complete the following methods in CitizenRegister: a. head()     i. Returns the first citizen object in the linked list b. tail()     i. Returns the last citizen object in the linked list c. size()     i. Returns the totalRegisteredCitizen d. isEmpty()     i. Returns the boolean of whether the linked list is empty or not e. addCitizenAtHead(Node newNode)     i. Adds a new node object containing the citizen object information        before the headNode f. addCitizenAtTail(Node newNode)      i. Adds a new node object containing the citizen object information at         the end of the linked list g. addCitizenBefore(String citizenID, Node newNode)      i. Adds a new node object containing the citizen object information       before the node with the matching citizenID      ii. If such citizen object isn’t found display “Citizen has not registered for      vaccine” and add the new node at the end of the linked list h. addCitizenAfter(String citizenID, Node newNode)      i. Adds a new node object containing the citizen object information         after the node with the matching citizenID      ii. If such citizen object isn’t found display “Citizen has not registered for          vaccine” and add the new node at the end of the linked list I. removeCitizen(String citizenID)       i. Deletes the node object containing the citizen object with the          matching citizenID       ii. If such citizen object isn’t found display “Citizen has not registered for          vaccine” j. removeLastCitizen()       i. Deletes the last node object containing the citizen object at the end          of the linked list k. removeFirstCitizen()       i. Deletes the first node object containing the citizen object in the linked       list l. displayAllCitizens()  Driver (the program that runs everything) a. Create a menu system as shown below(In the picture, fig 1) b. A follow-up menu should prompt the user to enter additional information for    options 5-8 e.g.(picture 2, fig 2) c. When the user enters invalid input (e.g., negative integers or integer values    outside the range of options 1- 12):      i. Terminate the program with the following message          “Program terminated due to invalid input. Thanks for using our           system

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 3RQ
icon
Related questions
Question
100%

Can i please have help with this question in java, please .

Java is the language

java

kind regars 

Create a class called Citizen with the following attributes/variables:
String citizenID ,String citizenName ,String citizenSurname ,String citizenCellNumber ,int registrationDay ,int registrationMonth ,int registrationYear


 Create a class called Node with the following attributes/variables:
Citizen citizen , Node nextNode 

 Create a class called CitizenRegister with the following attributes/variables:
a. Node headNode
b. int totalRegisteredCitizens

 Add and complete the following methods in CitizenRegister:

a. head()
    i. Returns the first citizen object in the linked list
b. tail()
    i. Returns the last citizen object in the linked list
c. size()
    i. Returns the totalRegisteredCitizen
d. isEmpty()
    i. Returns the boolean of whether the linked list is empty or not
e. addCitizenAtHead(Node newNode)
    i. Adds a new node object containing the citizen object information
       before the headNode
f. addCitizenAtTail(Node newNode)
     i. Adds a new node object containing the citizen object information at
        the end of the linked list
g. addCitizenBefore(String citizenID, Node newNode)
     i. Adds a new node object containing the citizen object information
      before the node with the matching citizenID
     ii. If such citizen object isn’t found display “Citizen has not registered for
     vaccine” and add the new node at the end of the linked list
h. addCitizenAfter(String citizenID, Node newNode)
     i. Adds a new node object containing the citizen object information
        after the node with the matching citizenID
     ii. If such citizen object isn’t found display “Citizen has not registered for
         vaccine” and add the new node at the end of the linked list
I. removeCitizen(String citizenID)
      i. Deletes the node object containing the citizen object with the
         matching citizenID
      ii. If such citizen object isn’t found display “Citizen has not registered for
         vaccine”
j. removeLastCitizen()
      i. Deletes the last node object containing the citizen object at the end
         of the linked list
k. removeFirstCitizen()
      i. Deletes the first node object containing the citizen object in the linked
      list
l. displayAllCitizens()

 Driver (the program that runs everything)
a. Create a menu system as shown below(In the picture, fig 1)
b. A follow-up menu should prompt the user to enter additional information for
   options 5-8 e.g.(picture 2, fig 2)
c. When the user enters invalid input (e.g., negative integers or integer values
   outside the range of options 1- 12):
     i. Terminate the program with the following message
         “Program terminated due to invalid input. Thanks for using our
          system

b. A follow-up menu should prompt the user to enter additional information for
options 5-8 e.g.
Enter citizen info in the following format:
citizenID,citizenName,citizenSurname,citizenCellNumber,registrationDay,registrationMonth,registrationYear
Transcribed Image Text:b. A follow-up menu should prompt the user to enter additional information for options 5-8 e.g. Enter citizen info in the following format: citizenID,citizenName,citizenSurname,citizenCellNumber,registrationDay,registrationMonth,registrationYear
5. Driver (the program that runs everything)
a. Create a menu system as shown below:
Welcome to the Covid vaccine registertration program.
Enter numbers for various menu options:
Show the first citizen registered
Show the last citizen registered
Show the total amount of citizen registered
Show whether the list is eEmpty
Add a citizen in front of the list
1
2
3
4
Add a citizen at the end of the list
Add citizen before a given ID
Add citizen after a given ID
Remove citiven with the given ID
Remove last citizen
7
8
9
10
Remove first citizen
Show all citizens in the list
11
12
13+
Any other integers to Quit.
Transcribed Image Text:5. Driver (the program that runs everything) a. Create a menu system as shown below: Welcome to the Covid vaccine registertration program. Enter numbers for various menu options: Show the first citizen registered Show the last citizen registered Show the total amount of citizen registered Show whether the list is eEmpty Add a citizen in front of the list 1 2 3 4 Add a citizen at the end of the list Add citizen before a given ID Add citizen after a given ID Remove citiven with the given ID Remove last citizen 7 8 9 10 Remove first citizen Show all citizens in the list 11 12 13+ Any other integers to Quit.
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Development strategies
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,