Object Oriented Java Application For Community Centre Facility Booking System
Functionality for two user types: administrator and registered users
run:
Login Menu
==========
Enter 1: Login as Admin
Enter 2: Login as User
Enter 0: Exit
Enter now… 1
Enter UserId:
admin1
Enter password:
ad123
Logged in as Admin!
Admin Menu
==========
Enter 1: Add new user
Enter 2: Add new Facility
Enter 3: Make a booking
Enter 4: View availability of a facility
Enter 5: Remove facility
Enter 6: Decommission a facility
Enter 7: Update payment status
Enter 8: View booking account status
Enter 0: Logout
Enter now… 1
Enter Email ID of new user:
[email protected]
Password generated… wh3bk
New User added!
Admin Menu
==========
Enter 1: Add new user
Enter 2: Add new Facility
Enter 3: Make a booking
Enter 4: View availability of a facility
Enter 5: Remove facility
Enter 6: Decommission a facility
Enter 7: Update payment status
Enter 8: View booking account status
Enter 0: Logout
Enter now… 2
Enter Name of new Facility:
Hall
Enter price/hour of the new Facility:
2.5
New Facility added!
Admin Menu
==========
Enter 1: Add new user
Enter 2: Add new Facility
Enter 3: Make a booking
Enter 4: View availability of a facility
Enter 5: Remove facility
Enter 6: Decommission a facility
Enter 7: Update payment status
Enter 8: View booking account status
Enter 0: Logout
Enter now… 3
Enter Facility name:
Hall
Enter user’s mail id:
[email protected]
Enter the date for booking (dd-mm-yyyy):
15-05-2018
Slots we offer are:
Slot 1 (9:00 to 10:00)
Slot 2(10:00 to 11:00)
Slot 3 (11:00 to 12:00)
Slot 4 (12:00 to 13:00)
Slot 5 (13:00 to 14:00)
Slot 6 (14:00 to 15:00)
Slot 7 (15:00 to 16:00)
Slot 8 (16:00 to 17:00)
Slot 9 (17:00 to 18:00)
Enter the Slot for booking…
6
Booking Successful on 15-05-2018 for slot: 6 !
Admin Menu
==========
Enter 1: Add new user
Enter 2: Add new Facility
Enter 3: Make a booking
Enter 4: View availability of a facility
Enter 5: Remove facility
Enter 6: Decommission a facility
Enter 7: Update payment status
Enter 8: View booking account status
Enter 0: Logout
Enter now… 1
Enter Email ID of new user:
[email protected]
User already exists!
Admin Menu
==========
Enter 1: Add new user
Enter 2: Add new Facility
Enter 3: Make a booking
Enter 4: View availability of a facility
Enter 5: Remove facility
Enter 6: Decommission a facility
Enter 7: Update payment status
Enter 8: View booking account status
Enter 0: Logout
Enter now… 3
Enter Facility name:
Hall
Enter user’s mail id:
[email protected]
Enter the date for booking (dd-mm-yyyy):
15-05-2018
Slots we offer are:
Slot 1 (9:00 to 10:00)
Slot 2(10:00 to 11:00)
Slot 3 (11:00 to 12:00)
Slot 4 (12:00 to 13:00)
Slot 5 (13:00 to 14:00)
Slot 6 (14:00 to 15:00)
Slot 7 (15:00 to 16:00)
Slot 8 (16:00 to 17:00)
Slot 9 (17:00 to 18:00)
Enter the Slot for booking… 6
Sorry! This slot is already taken on the applied date! Please try with another slot.
Enter the date for booking (dd-mm-yyyy):
15-05-2018
Slots we offer are:
Slot 1 (9:00 to 10:00)
Slot 2(10:00 to 11:00)
Slot 3 (11:00 to 12:00)
Slot 4 (12:00 to 13:00)
Slot 5 (13:00 to 14:00)
Slot 6 (14:00 to 15:00)
Slot 7 (15:00 to 16:00)
Slot 8 (16:00 to 17:00)
Slot 9 (17:00 to 18:00)
Enter the Slot for booking… 7
Booking Successful on 15-05-2018 for slot: 7 !
Admin Menu
==========
Enter 1: Add new user
Enter 2: Add new Facility
Enter 3: Make a booking
Enter 4: View availability of a facility
Enter 5: Remove facility
Enter 6: Decommission a facility
Enter 7: Update payment status
Enter 8: View booking account status
Enter 0: Logout
Enter now… 5
Enter Facility name:
Hall
Facility cannot be removed! It has bookings.
Admin Menu
==========
Enter 1: Add new user
Enter 2: Add new Facility
Enter 3: Make a booking
Enter 4: View availability of a facility
Enter 5: Remove facility
Enter 6: Decommission a facility
Enter 7: Update payment status
Enter 8: View booking account status
Enter 0: Logout
Enter now… 6
Enter Facility name:
Hall
Facility cannot be decommissioned! It has bookings.
Admin Menu
==========
Enter 1: Add new user
Enter 2: Add new Facility
Enter 3: Make a booking
Enter 4: View availability of a facility
Enter 5: Remove facility
Enter 6: Decommission a facility
Enter 7: Update payment status
Enter 8: View booking account status
Enter 0: Logout
Enter now… 2
Enter Name of new Facility:
Kitchen
Enter price/hour of the new Facility:
1.6
New Facility added!
Admin Menu
==========
Enter 1: Add new user
Enter 2: Add new Facility
Enter 3: Make a booking
Enter 4: View availability of a facility
Enter 5: Remove facility
Enter 6: Decommission a facility
Enter 7: Update payment status
Enter 8: View booking account status
Enter 0: Logout
Enter now… 5
Enter Facility name:
Kitchen
Facility removed Successfully!
Admin Menu
==========
Enter 1: Add new user
Enter 2: Add new Facility
Enter 3: Make a booking
Enter 4: View availability of a facility
Enter 5: Remove facility
Enter 6: Decommission a facility
Enter 7: Update payment status
Enter 8: View booking account status
Enter 0: Logout
Enter now… 7
Enter booking ID: 0
Payment status updated!
Admin Menu
==========
Enter 1: Add new user
Enter 2: Add new Facility
Enter 3: Make a booking
Enter 4: View availability of a facility
Enter 5: Remove facility
Enter 6: Decommission a facility
Enter 7: Update payment status
Enter 8: View booking account status
Enter 0: Logout
Enter now… 8
Booking Account Details
=========================
Booking ID: 0
Facility Name: Hall
User Id: [email protected]
Booking Date: Tue May 15 00:00:00 IST 2018
Slot: 6
Payment status: 1
Booking ID: 1
Facility Name: Hall
User Id: [email protected]
Booking Date: Tue May 15 00:00:00 IST 2018
Slot: 7
Payment status: 0
Account Summary…
Total number of bookings: 2
Net worth of all bookings: 5.0
Admin Menu
==========
Enter 1: Add new user
Enter 2: Add new Facility
Enter 3: Make a booking
Enter 4: View availability of a facility
Enter 5: Remove facility
Enter 6: Decommission a facility
Enter 7: Update payment status
Enter 8: View booking account status
Enter 0: Logout
Enter now… 2
Enter Name of new Facility:
Auditorium
Enter price/hour of the new Facility:
50
New Facility added!
Admin Menu
==========
Enter 1: Add new user
Enter 2: Add new Facility
Enter 3: Make a booking
Enter 4: View availability of a facility
Enter 5: Remove facility
Enter 6: Decommission a facility
Enter 7: Update payment status
Enter 8: View booking account status
Enter 0: Logout
Enter now… 6
Enter Facility name: Auditorium
Enter the ending date for Decommission (dd-mm-yyyy):
20-10-2018
Admin Menu
==========
Enter 1: Add new user
Enter 2: Add new Facility
Enter 3: Make a booking
Enter 4: View availability of a facility
Enter 5: Remove facility
Enter 6: Decommission a facility
Enter 7: Update payment status
Enter 8: View booking account status
Enter 0: Logout
Enter now… 3
Enter Facility name: Auditorium
No such facility exists OR Facility is in decommissioned state!
Admin Menu
==========
Enter 1: Add new user
Enter 2: Add new Facility
Enter 3: Make a booking
Enter 4: View availability of a facility
Enter 5: Remove facility
Enter 6: Decommission a facility
Enter 7: Update payment status
Enter 8: View booking account status
Enter 0: Logout
Enter now… 0
Logging out!
Login Menu
==========
Enter 1: Login as Admin
Enter 2: Login as User
Enter 0: Exit
Enter now… 2
Enter UserId:
[email protected]
Enter password:
wh3bk
Logged in as User [email protected] !
Admin Menu
==========
Enter 1: View upcoming bookings
Enter 2: View Account history
Enter 0: Logout
Enter now… 1
Upcoming bookings are as follows:
Booking ID: 0
Facility Name: Hall
User Id: [email protected]
Booking Date: Tue May 15 00:00:00 IST 2018
Slot: 6
Payment status: 1
Booking ID: 1
Facility Name: Hall
User Id: [email protected]
Booking Date: Tue May 15 00:00:00 IST 2018
Slot: 7
Payment status: 0
Admin Menu
==========
Enter 1: View upcoming bookings
Enter 2: View Account history
Enter 0: Logout
Enter now… 2
Account Summary…
Total number of bookings till date: 0
Net worth of bookings till date: 0.0
Admin Menu
==========
Enter 1: View upcoming bookings
Enter 2: View Account history
Enter 0: Logout
Enter now… 0
Logging out!
Login Menu
==========
Enter 1: Login as Admin
Enter 2: Login as User
Enter 0: Exit
Enter now… 1
Enter UserId:
admin222
Enter password:
admmww
Invalid User Id or Password!
Login Menu
==========
Enter 1: Login as Admin
Enter 2: Login as User
Enter 0: Exit
Enter now… 0
All data has been saved!
Exiting System…
Thank you!
BUILD SUCCESSFUL (total time: 5 minutes 2 seconds)