Download Gym Management System Documentation and more Study Guides, Projects, Research Java Programming in PDF only on Docsity!
GROUP ASSIGNMENT
OODJ(022022-KGT)
STUDENT NAMES & TP : LEE HONG YU TP
KESHWINI
INTAKE CODE : APD2F2202CS / APU2F2202IT(CC)
MODULE CODE : CT038-3-
MODULE NAME : OBJECT ORIENTATED DEVELOPMENT WITH JAVA
LECTURER NAME : KAU GUAN KIAT
HAND-OUT DATE : 9 th^ MARCH 2022 HAND-IN DATE : 27 TH^ MAY 2022
Contents
Figure 26: Trainer Interface Main Menu....................................................................................... 22 Figure 27: Staff Details Page......................................................................................................... 23 Figure 28: Update Staff Details Page............................................................................................. 23 Figure 29: Newly Updated Staff Details........................................................................................ 24 Figure 30: Book Training Session Page......................................................................................... 24 Figure 31: View Sessions Page...................................................................................................... 25 Figure 32: Edit Training Session Page........................................................................................... 26 Figure 33: Updated Training Session............................................................................................ 26 Figure 34: Feedback Page.............................................................................................................. 27 Figure 35: Updated Completed Session with Feedback................................................................ 27 Figure 36: Receipt Before Generate.............................................................................................. 28 Figure 37: Receipt After Generate................................................................................................. 29 Figure 38: Use Case Diagram........................................................................................................ 31
INTRODUCTION
The specifications and design of the gym management system are documented in this study. The system handbook outlines each program's capabilities in the first section. The system's design is then documented in the requirement analysis section. The use case and class diagram for modelling can be found in this section. Each function is accompanied with a related specification table to elaborate its function in accordance with the use case. The use of object-oriented principles in the gym management system follows this part. We document each concept used and where it is used in our programme in this section. This assignment’s source code is written solely in Java and is run using Netbeans IDE for Java 8.2. The code is written adhering to standard programming practises, with design principles such as writing minimal lines, using appropriate naming convention, applying DRY (Don't repeat yourself) and etc, as well as the use of comments in the source code where appropriate and sufficient indentation to improve code readability.
Assumption
Certain technical and logical assumptions are made in this assignment in the list below:
- Managers can edit all staff details including password.
- No limitation has been placed on booking a session with the same trainer. Training sessions date and time are not mutually exclusive between customers and can clash with each other.
- Payment is necessary to end a session. Both trainers and managers are not able to see how much each and every training session cost. This assignment assumes that payments are automatically made once each training session is completed. The generated receipt function also follows this assumption.
- Training sessions details can still be edited even as it is marked completed.
SYSTEM MANUAL
Here are the functionalities of the gym management system together with its explanation and screenshot for both clear visualization and documentation.
Login
- Table of Figures..............................................................................................
- INTRODUCTION.............................................................................................
- Assumption...................................................................................................
- SYSTEM MANUAL..........................................................................................
- Login.............................................................................................................
- Manager interface........................................................................................
- Customer Registration.................................................................................
- Filling contents in Registration Form........................................................
- Customer Details.......................................................................................
- Editing Customer Details...........................................................................
- Delete Customer Details............................................................................
- View Staff List............................................................................................
- Add New Staff............................................................................................
- Delete New Staff........................................................................................
- Log Out.......................................................................................................
- Trainer interface........................................................................................
- Update Profile............................................................................................
- Book Training Session...............................................................................
- View Training Sessions..............................................................................
- Edit Training Session.................................................................................
- End Session................................................................................................
- Generate Receipt........................................................................................
- ADDITIONAL FEATURES.............................................................................
- REQUIREMENT ANALYSIS..........................................................................
- Use Case Diagram......................................................................................
- Use Case Specification Table.....................................................................
- Class diagram.............................................................................................
- OBJECT ORIENTED PRINCIPLES AND ITS APPLICATION.........................
- CONCLUSION...............................................................................................
- REFERENCE.................................................................................................
- Figure 1: Login Page........................................................................................................................
- Figure 2: Manager Interface 1..........................................................................................................
- Figure 3: Manager Interface 2..........................................................................................................
- Figure 4: Trainer Interface 1............................................................................................................
- Figure 5: Trainer Interface 2............................................................................................................
- Figure 6: Manager Interface 3..........................................................................................................
- Figure 7: Registration Form...........................................................................................................
- Figure 8: Registration Form 2........................................................................................................
- Figure 9: Customer Details Page...................................................................................................
- Figure 10: Update Form.................................................................................................................
- Figure 11: Customer Details Text File 1........................................................................................
- Figure 12: Customer Details Text File 2........................................................................................
- Figure 13: Delete Customer Details Before...................................................................................
- Figure 14: Delete Customer Details After.....................................................................................
- Figure 15: Staff Details Main Page................................................................................................
- Figure 16: Staff Details Search Bar...............................................................................................
- Figure 17: Add Staff Before..........................................................................................................
- Figure 18: Add Staff 2...................................................................................................................
- Figure 19: Add Staff 3...................................................................................................................
- Figure 20: Add Staff After.............................................................................................................
- Figure 21: Staff Details Text File..................................................................................................
- Figure 22: Delete New Staff Before..............................................................................................
- Figure 23: Delete New Staff After.................................................................................................
- Figure 24: Manager Interface Main Menu.....................................................................................
- Figure 25: Login Page....................................................................................................................
- Figure 2 : Manager Interface
- Figure 3 : Manager Interface
- Figure 5 : Trainer Interface
Figure 7 : Registration Form In this Manager Interface, if the manager decides to click customer registration, it’ll bring him/her to a page with a registration form. Here, the manager can fill in the customer details to be recorded and save in our database.
Filling contents in Registration Form
Figure 8 : Registration Form 2 Users will have to select to agree to terms and conditions to proceed with clicking save.
Customer Details
Editing Customer Details
Figure 10 : Update Form Upon clicking the update button, the user will be brought to the Update Form to correct or change any details. Clicking the update button again will save any changes. Using this customer as an example, we change the name from Keshwini to Marvin, Male to Female. Here is a look at the before and after of the data stored in the text file shown in the first line of the text in both image.
Figure 11 : Customer Details Text File 1 Figure 12 : Customer Details Text File 2
Delete Customer Details
Figure 13 : Delete Customer Details Before
View Staff List
Figure 15 : Staff Details Main Page In view staff details, managers can see all existing staff/trainers’ information. One feature to not is that we can search for our staff details using the view name search bar. Figure 16 : Staff Details Search Bar
Add New Staff
Figure 17 : Add Staff Before To add a new staff, we simply click the button Add from the staff details page. Fill in the relevant information in the Add Staff page. Figure below (left) shows a pop up message whenever there is an information section left unfilled. In this case, the phone number is missing. Figure below (right) shows a pop up message warning that IC should have only 12 digits inserted. Figure 18 : Add Staff 2
Figure 21 : Staff Details Text File In our staff details text file, a new manager account with all the necessary details is created at the last line.
Delete New Staff
Figure 22 : Delete New Staff Before Figure 23 : Delete New Staff After Top figure shows the before, bottom figure shows the after once we highlighted a specific staff and delete it. Clicking the back button simply brings us back to the main page.
Log Out
The log out button brings the interface back to Login page. Other users can then log in with their respective accounts to continue using the system. This button works identically in both the trainer and manager interface. Left figure shows before clicking the log out button, right shows the after.