Q1. KOI needs a new system to keep track of vaccination status for students. You need to create an application to allow
Posted: Tue May 24, 2022 8:03 am
Q1. KOI needs a new system to keep track of vaccination status
for students. You need to create an
application to allow Admin to enter Student IDs and then add as
many vaccinations records as needed.
In this first question, you will need to create a class with the
following details.
- The program will create a VRecord class to include vID, StudentID
and vName as the fields.
- This class should have a Constructor to create the VRecord object
with 3 parameters
- This class should have a method to allow checking if a specific
student has had a specific vaccine
(using student ID and vaccine Name as paramters) and it should
return true or false.
- The tester class will create 5-7 different VRecord objects and
store them in a list.
- The tester class will print these VRecords in a tabular format on
the screen
Q2. Continuing with the same VRecord class as in Q2. Program a new
tester class that will use the same
VRecord class to perform below tasks
- This new tester class will ask the user to enter a student ID and
vaccine name and create a new
VRecord object and add to a list, until user selects ‘No” to enter
more records question.
- The program will then ask the user to enter a Student ID and
vaccine name to check if that student
had a specific vaccination by using the built-in method and print
the result to screen.
for students. You need to create an
application to allow Admin to enter Student IDs and then add as
many vaccinations records as needed.
In this first question, you will need to create a class with the
following details.
- The program will create a VRecord class to include vID, StudentID
and vName as the fields.
- This class should have a Constructor to create the VRecord object
with 3 parameters
- This class should have a method to allow checking if a specific
student has had a specific vaccine
(using student ID and vaccine Name as paramters) and it should
return true or false.
- The tester class will create 5-7 different VRecord objects and
store them in a list.
- The tester class will print these VRecords in a tabular format on
the screen
Q2. Continuing with the same VRecord class as in Q2. Program a new
tester class that will use the same
VRecord class to perform below tasks
- This new tester class will ask the user to enter a student ID and
vaccine name and create a new
VRecord object and add to a list, until user selects ‘No” to enter
more records question.
- The program will then ask the user to enter a Student ID and
vaccine name to check if that student
had a specific vaccination by using the built-in method and print
the result to screen.