Professional Documents
Culture Documents
JAVA PROGRAMMING
ASSIGNMENT
No.1/1
Class: PROG191
Subject’s ID:
Unit number
and title
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of
plagiarism. I understand that making a false declaration is a form of malpractice.
Student’s signature
Grading grid
Grade (0-10)
Assessment Brief
Student Name/ID Number
Unit Number and Title Object Oriented Programming with Java
Academic Year 2020 - 2021
Unit Tutor
Assignment Number & Design, Implement and Test a GUI application
Title
Issue Date
Submission Date
IV Name & Date
Submission Format
The submission is in the form of a written report. This should be written in a concise, formal business style
using single spacing and font size 12. You are required to make use of headings, paragraphs and
subsections as appropriate, and all work must be supported with research and referenced using the Harvard
referencing system. Please also provide a bibliography using the Harvard referencing system.
Unit Learning Outcomes
LO1 Understand basic programming skills and OOP paradigm
LO2 Understand how to detect errors and handle errors
LO3 Understand how to working with files in applications
LO4 Understand how to build GUI application
Assignment Brief
You have to develop an application to solve a small business problem. The problem requires a graphical
user interface with features that required reading / writing data from text file, working with a collection of
data (searching for item / min / max / sum / etc.). The application must handle errors so that it will not
crash at end user side. The application also need to be fully tested before the production phase.
You need to write a technical report about the development of the application. Content of the report should
cover design, implementation and testing.
In the end you need to demo your application, explain your code and answer technical questions.
Learning Outcomes and Assessment Criteria
These lines of code in figure 7 have the effect of assigning default values for key elements in
employee data entry. Elements include: ID, first name, last name, gender, date of birth, address,
phone number and email. This will be uses to put into orther piece of code so they can know
what target they focus to process
The lines of code form figure 9 to figure 11 are used to configure the size and value for input
frames with corresponding value assignments. These number in code ca be changed which is
based on programmer or if we change them in interface design tool, it will be changed too.
The lines of code from figure 12 are used to function event for OK button which will save all
employees information signed in into a bulletin board. All element must be write in to code line
or it will not run in function.
Figure 13: main soruce code
The lines of the code from figure 13 are used to load all employee information data that is saved
in to a file or database. This function event can only run when the file or the database it connect
with have data inside them or it will get error when run.
The lines of the code from figure 14 are used to save all employee information data that is signed
into interface form. This function event help all our employee data not to be lost if they want to
see it or change it in the future. Without this function event, load function event can not run.
Figure 15: main soruce code
These lines of code from figure 15 are used to get back or see the next employees information
saved in file. When load data come in we can use see other employees in list without looking into
file to find their information from previous or next forms
2. run interface
Caption:
this is user interface for first use case
all element and lable can be able to chang
inputting wrong type of element will make it not run.
This interface just includes function event for use case 1 so when combine it with use
case 2 it will be different
Figure 17: use case 2 interface
Caption:
this is build with the same first use case interface but it have requirmenr function from
use case 2 so it the same with the first iunclude some new function buttons
must save all data before load data function.
5. test
For use case 1, I will input into some information from some example employees.
First employee:
ID: 231
First name: john
Last name: carter; Gender: male
Date of birth: 18.12.1974
Address 153 Harton.Str
Phone number: 12774853
Email: joca@gmail.com
Result:
Caption:
The message only appear when all value added into correctly
If there is any label get no vlaue, it will not appear.
Second employee:
ID: 236
First name: alex
Last name: forton; Gender: female
Date of birth: 22.08.1978
Address: 476 Daten.str
Phone number: 16674053
Email: alexF@gmail.com
Result:
Caption:
The message only appear when all value added into correctly
If there is any label get no vlaue, it will not appear
For use case 2, we will save all employee information by using Save All Employee Data
Function in File menu button
Figure 20: use case 2 implement
After that , we close the software and these data will be saved into specific file. This is how it
look
When to check we just need to press Load all Employee Data in File menu button.
Result:
Figure 22: use case 2 result