Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

So im working on a java program for one of my classes and i need to make a booking system for driving road test. I

So im working on a java program for one of my classes and i need to make a booking system for driving road test. I want to have like 5 already existing users hard coded. I want this code to be simple, nothing too hard. Make sure you go through the program description as i explained the part nicely. I also made a class digram that you can use if you want. Remember this code should be on Java, and make it simple. One more thing, if you want to get a good understanding of how the booking system should look like, you can go on the ontario booking road test, but i dont think youll need it.
For the import part, only use the import java.util.ArrayList; , import java.util.Date; , import java.util.Scanner;
Please don't use any other hard import classes and use the ones mentioned.
The hard coded objective should have the users full name, address, and drivers license number
Program Description:
1. User being verified
Existing Users: When the program starts, the users will be asked to enter their driver's license number to verify their identity. The License number should look like something like S1234-56789-51011
If the driver's license number matches an existing entry in the database, the user is verified and proceeds to the appointment booking.
If there is no match, the user will need to register
New users will need to register inro the system by entering their name, email address, driver's license number, and its expiry date. Once they are registered in the system then these details are added to the system's database where if they want to access their data they can.
New users will also be asked to enter their class level in order to book an appointment. Which is G2 or G
2. Booking an Appointment
Once they put in their drivers license number and is verified, then the users can book a road test for classes G or G2.
The system displays available dates and times for appointments in real time, and the user will select their preferred date and time for the test.
3. Appointment confirmation
Once they picked an appointment, the user will be asked to double check their date time before confirming.
Once its confirmed, the appointment details includes like the date and time, which is being displayed to them. After that it will ask the user if they want to get the confirmation email to be sent to the user's registered email address. The email will include their name, driver license details, and the appointment details.
4. Managing appointments
If the users need to reschedule or cancel their appointment, they can do so by re entering their driver's license number or their full name to access their booking.
If they decide to change their appointments, they would need to do it before 24 hours, then it'll be updated in with our real time and reflected in the system right after.
The user should be able to book once, not twice.
5. Help and support
During the step, if the user gets stuck then the code will give them an option where they can call a support number, which will be an option and when they click that itll give them a code like C51221, and they can visit the booking center with a code generated by the system for further help. Once they click that part, itll print how some steps that can help them and it'll ask if they want to restart their code or continue entering their drivers license number to be verified
6. System Loop
The system continuously loops to accommodate new bookings, rescheduling, or cancellations. All appointments are stored in an array
the class digram is in the picture
image text in transcribed

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 Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

Analyse the process of new product of development.

Answered: 1 week ago

Question

Define Trade Mark.

Answered: 1 week ago

Question

=+4. What is the purpose of a sandbox on a wiki? [LO-3]

Answered: 1 week ago