Docsity

Object Oriented Programming with Java: Design, Implement and Test a GUI Application, Assignments of Java Programming

Partial preview of the text

Download Object Oriented Programming with Java: Design, Implement and Test a GUI Application and more Assignments Java Programming in PDF only on Docsity!

Higher Nationals in Computing

Unit 0: Java Programming

ASSIGNMENT

Learner’s name: THAN VAN THIEN

ID: GCS

Class: GCS0905_C

Subject code: PROG

Assessor name: VU THANH HIEN

Assignment due: Assignment submitted:

ASSIGNMENT 1 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing

Unit number and title Java Programming

Submission date July 8, 2022 Date Received 1st submission July 8, 2022

Re-submission Date Date Received 2nd submission

Student Name Than Van Thien Student ID GCS

Class GCS0905_C Assessor name Vu Thanh Hien

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 Thien

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 & Title Design, Implement and Test a GUI application

Issue Date

Submission Date July 8, 2022

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.

Table of Contents

  • I. Introduction:....................................................................................................................
  • II. Requirement:.................................................................................................................
  • III. UI design:......................................................................................................................
  • IV. Implementation:...........................................................................................................
      1. Explain program structure..........................................................................................
      1. Explain classes.........................................................................................................
      1. Explain important algorithms..................................................................................
      1. Explain how to handle errors...................................................................................
  • V. Test:...............................................................................................................................
      1. Test Plan:..................................................................................................................
      1. Log, Result...............................................................................................................
  • VI. Result:..........................................................................................................................
  • VII. Conclusion:................................................................................................................
  • REFERENCES.................................................................................................................

I. Introduction:

In the 4.0 era, using human resource management software is a trend. However, if you follow the trend and immediately apply it without understanding the consequences will be severe. As a result, in this project, I will provide an overview of human resource management software to assist businesses in making informed decisions. Human resource management software is software designed based on the human resources department's model for the purpose of applying modern technology - technology to the work process, assisting in the optimization of human resource management activities such as: managing staff records, timekeeping, salary, recruitment - training... However, because I lack programming experience, upgrading this advanced to a new higher level for the first house private takes time. The steps from user account registration, logging in, and the main collaborations of the Staff management window have been established in this management project.

II. Requirement:

The java program that I created helped me solve some of the following problems: -I can enter data, and can edit and delete them easily and understandably -I can find information about the product I need through the search function. -I can review the information I have entered before through the program's file reading and writing function

  • I already know the forms: sign up, login and execute statements in the project.
  • This is the main UI tabbed - pane1 design of the project used to manage employees. Including: Six labels StaffID, Fullname, Country, Gender, Status and Note , four buttons Create, Update, Delete and Reset.
  • This is the main design UI Tabbed 2 of the project that is used to describe the properties of the Tabbed Pane 1.

=> The program's basic interface will include labels, text fields, and combo boxes for users to enter corresponding information. In addition, there are buttons that allow users to interact with the entered data. Finally, a table to display the results of the entered data.

Form Login design

Form Staffs Management design

2. Explain classes In this class, I have imported the respective libraries to use the variables that I created:

I have declared the local variables with the corresponding type (string,integer,...) as private to make them only used in this class, avoiding duplication with the variables that I use in the Jframe.

Then I declare methods that contain variables. Through those methods, I push the data inside the Jframe.

I then use java's encapsulation through getter and setter methods to define accessibility for the private properties I created earlier and allow them to be viewed and modified. It is the method of initialization. This method can be used to define the objects I declared earlier. This allows me to

initialize values for properties within it as well as call other relating methods to initialize the logic within the objects.

And the events were attached to each button on the form SignUp, through the power packages, the IF -ELSE loops that users can enter data from the keyboard to register the project's account.

  1. Username and password compulsory. If the user has not yet entered, the application will display the notice.
  2. When the person selects the "Signup" button, check the password information at the Password and the Confirmpassword box is the same? If not the same, then display the notice requires the user to enter again. In contrast, the system login form will display.
  3. When the user selects the "Cancel" button, the application will close