Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE WRITE THE CODE----------------- You need to follow the MVC architectural pattern to develop an online Covid-19 vaccination appointment system using Java Servlets and JSPs.
PLEASE WRITE THE CODE-----------------
You need to follow the MVC architectural pattern to develop an online Covid-19 vaccination appointment system using Java Servlets and JSPs.
Requirements:
- The user shall enter his National ID number (then submit the request)
- The system shall determine if the user:
- Fully vaccinated boosted (a person who received two doses, and a booster shot).
- Fully vaccinated (Two doses) -> (can go for a third shot (vaccine booster shot), see Req 6 below).
- Already received the first dose -> (Allow the user to book an appointment for the second dose)
- Didnt take any dose -> (Allow the user to book an appointment for the first dose).
- The system shall determine if the user:
- The user shall be able to determine the vaccination type (for the first dose only)
- The user shall be able to select the date/time for the appointment
- If the user is booking an appointment for the second dose, the time between the first and second dose shall not be less than N weeks (N is configurable in the database based on the vaccine type).
- When the citizen takes a dose, the nurse/admin shall set this in the database.
- If the citizen received two doses, he/she can take the third shot, but they must sign a consent.
- Children under 12 years old are not eligible for vaccination.
- The user can book an appointment at any vaccination center in any city
- Each vaccination center can serve up to N people every hour (N is configurable in the database).
- Vaccination is available from 8:00AM until 5:59PM
- You need to use a database (of your choice), the DB should contain:
- Person info (ID, First Name, Last Name, DOB, Address, add more information if you find it necessary).
- Once the user books an appointment, it shall be recorded in the database
- The database shall contain the vaccination type, dose number, and the appointment date/time
- When the citizen receives the shot on the appointment date, the admin/nurse shall record this in the system.
- You need to write a controller (servlet) to receive the user requests, create and update the models, and dispatch the requests to the correct resources (mainly views).
- You need to write views (JSP) that will be the response to the user requests.
- You need to build the model classes that represent the business logic.
- Make sure to test the main scenarios.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started