Answered step by step
Verified Expert Solution
Link Copied!

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:

  1. The user shall enter his National ID number (then submit the request)
    1. The system shall determine if the user:
      1. Fully vaccinated boosted (a person who received two doses, and a booster shot).
      2. Fully vaccinated (Two doses) -> (can go for a third shot (vaccine booster shot), see Req 6 below).
      3. Already received the first dose -> (Allow the user to book an appointment for the second dose)
      4. Didnt take any dose -> (Allow the user to book an appointment for the first dose).
  2. The user shall be able to determine the vaccination type (for the first dose only)
  3. The user shall be able to select the date/time for the appointment
  4. 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).
  5. When the citizen takes a dose, the nurse/admin shall set this in the database.
  6. If the citizen received two doses, he/she can take the third shot, but they must sign a consent.
  7. Children under 12 years old are not eligible for vaccination.
  8. The user can book an appointment at any vaccination center in any city
  9. Each vaccination center can serve up to N people every hour (N is configurable in the database).
  10. Vaccination is available from 8:00AM until 5:59PM
  11. You need to use a database (of your choice), the DB should contain:
    1. Person info (ID, First Name, Last Name, DOB, Address, add more information if you find it necessary).
  12. Once the user books an appointment, it shall be recorded in the database
    1. The database shall contain the vaccination type, dose number, and the appointment date/time
  13. When the citizen receives the shot on the appointment date, the admin/nurse shall record this in the system.
  14. 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).
  15. You need to write views (JSP) that will be the response to the user requests.
  16. You need to build the model classes that represent the business logic.
  17. Make sure to test the main scenarios.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions