APU Diploma Java Assignment
APU Diploma Java Assignment
INDIVIDUAL ASSIGNMENT
TECHNOLOGY PARK MALAYSIA
AAPP004-3-2-JP
JAVA PROGRAMMING
Intake: UCDF1505ICT
Name of Lecturer: Tanveer Khaleel Shaikh
Submission date: 13th April 2017
Contents
Introduction................................................................................................................................3
Assumptions...............................................................................................................................3
Sample code with some explanation..........................................................................................3
Inheritance / Generalization...................................................................................................3
Adding a new client...............................................................................................................5
Try catch block.......................................................................................................................5
Login page authentication......................................................................................................6
Delete client...........................................................................................................................7
Additional features.....................................................................................................................7
Sample outputs with explanation...............................................................................................9
Main menu and Login............................................................................................................9
Staff......................................................................................................................................12
Client....................................................................................................................................32
Coach....................................................................................................................................33
Conclusion................................................................................................................................41
List of references......................................................................................................................42
References for images in MainMenu.java...........................................................................42
Introduction.
Nowadays, information technology becoming more modern. Moreover, within past 10
years computers have become an important detail in system managements of all types
businesses. Management software is a general phrase used to describe a category of computer
software designed to help streamline the complexity of large projects and tasks as well as
facilitate team collaboration and project reporting. Most management software solutions can
also handle resource and employee management, schedule coordination, task assignment,
budgeting, time and risk analysis and more. (Webopedia. 2017). Management software that
has been created by Java programming language become more efficient these days. In this
assignment we are going to develop a Sport Class Fees Management System which will be
used for a sport center using Java programming language and NetBeans IDE.
Assumptions.
System will be developed using Netbeans IDE.
All users must log in to a system, this feature is for security purpose.
Proposed system will help Staff to charge customers and help to Client to make
payment.
Validation will done for each input field in order to avoid logical errors.
For inheritance concept has been used 4 java classes which is: User.java, Staff.java,
Client.java and Coach.java
Class diagram:
Additional features.
First of all, as an additional feature has been used an Arraylist. It is a class which
implements List interface. It is widely used because of the functionality and flexibility it
offers (Beginnersbook.com. 2017). Here is an example of Arraylist (Figure 4.1).
The second feature is CSV files. A CSV file is a way to collect the data from any table
so that it can be conveyed as input to another table-oriented application such as a relational
database application. Microsoft Excel, a leading spreadsheet or relational database
application, can read CSV files. A CSV file is sometimes referred to as a flat file
(SearchSQLServer. 2017). This type of file has been used for to store the data in this system.
The input validation is there for ID number field, this means User can input only
numbers for ID number field. Once User submits non-integer input it will show error (Figure
5.4).
Only once User submits correct ID number and Password (Figure 5.6) it will go to the
Staff Menu, for this case correct credentials are: ID number: 10005, Password: asd123.
Pressing any button will go to appropriate page. Pressing Log Out will go back to the
Main Menu. First of all, once User click on Add New Client button it will go to New
Customer Registration page (Figure 5.8).
2) Number Validation for ID number and Phone Number. Example: inputting string to Phone
Number field (Figure 5.10)
Once all field are filled up, for ID and Phone are typed only numbers and if ID Number
is available, then new client will be registered and will be shown appropriate message (Figure
5.12).
Once User clicks on View ALL button all customers details will appear on table
(Figure 5.14).
In addition, user check is also there. For example, when user submits not existing
Clients ID, error will appear (Figure 5.16).
Next, if user clicks on Search Client button, it will open the Search Client page
(Figure 5.18).
In addition, if user puts an ID which is not exist in system, then error message will
appear (Figure 5.20).
Once User clicks on back Button, then it will display the Staff Menu. On Staff Menu
next option is Modify or Delete Customer (Figure 5.22).
After that, once some changes is applied then click on Modify button, the information
message will appear (Figure 5.26).
Back button will go back to a Staff Menu. The next function is Add New Coach
(Figure 5.28).
Clear button will make all fields empty (Figure 5.28). Back button will display Staff
Menu. The next function for staff is View Coach (Figure 5.30).
In this form, Search function has all types of validation as same as in View Client.
Once user types correct ID and clicks on Search button, there, in table will be displayed only
that particular coach that user has been searching for (Figure 5.32).
Here, for search function, has been applied all validations like in Search Client page.
To search, user needs to input correct ID and click Search button, then success message will
be displayed (Figure 5.34).
In this form, has been applied all types of validation to avoid logical error like in
Modify or Delete Client form. To modify existing coach, user needs to type correct ID and
click on Search button, then all fields will fulfil with appropriate data (Figure 5.36).
To delete a coach, used needs to input correct ID number and click on Delete button,
then appropriate message will appear (5.38).
Number input validation is also applied here for both fields (Figure 5.40).
Once user inputs correct ID the fields will be filled up (Figure 5.42).
Back button will display Staff Menu. Next function of staff is Make Payment (Figure
5.44).
Client.
The next form is Client Menu (Figure 5.46).
Coach.
The next form is Coach Menu (Figure 5.48) which consists all functions of Coach.
Once user enters a correct ID number and clicks on Search button, then fields below
will be filled up appropriately (Figure 5.50).
To proceed user needs to fill up all fields. Otherwise, error message will appear
(Figure 5.52).
The next form is Upload Schedule (Figure 5.54). Validation is also applied here like in
Upload Matches.
The next function is Remove Matches which will remove all uploaded matches
(Figure 5.56).
The next function is Remove Schedule which will remove whole uploaded schedule
(Figure 5.58).
The next function is View Matches, which allows to view uploaded matches to all
users (Staff, Coach, Client) (Figure 5.60).
The next function is View Matches, which allows to view timing for sport classes to
all users (Staff, Coach, Client) (Figure 5.62).
Besides that, File Not Found exception has been added to all forms, which will show
error message if file is not found.
Conclusion.
To sum it all up, the proposed system has been created using Java programming
language. All required concepts included in this code. Besides that, the proposed system
should reduce the most paperwork in sport or fitness centres. Moreover, this system is more
comfortable for clients. Because, they will check their outstanding fees, view timetable and
matches at home, rather than asking staff every time. Payment issue is also solved. However,
this system needs to be tested on real business environment, then if there some bugs or errors,
need to update and solve emerging problems.
List of references.
Webopedia. 2017. What is management software. [ONLINE] Available
at: http://www.webopedia.com/TERM/M/management_software.html. [Accessed 12 April
2017].
Pinterest. 2017. 17 Best images about Coach on Pinterest | Trainers, Icons and Circles.
[ONLINE] Available at: https://www.pinterest.com/kevin6774/coach/. [Accessed 11 April
2017].
The Loud House Encyclopedia. 2017. Albert | The Loud House Encyclopedia | Fandom
powered by Wikia. [ONLINE] Available at: http://theloudhouse.wikia.com/wiki/Albert.
[Accessed 11 April 2017].
The Pendleton Panther. 2017. College Prep | The Pendleton Panther. [ONLINE] Available
at: https://pendletonpanther.wordpress.com/category/pendleton/college-prep/. [Accessed 11
April 2017].