Java assignment 1 Greenwich, Essays (university) of Java Programming

This is Java assignment 1 Greenwich University.

Typology: Essays (university)

2021/2022

Uploaded on 06/20/2022

bao-chi
bao-chi 🇻🇳

4.8

(13)

6 documents

1 / 36

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Higher Nationals in Computing
JAVA PROGRAMMING
ASSIGNMENT 1
No.1
Learner’s name: NGUYEN CHI BAO
Assessor name: Nam Lam
Class: GCS0903A
Learner’s ID: GCS200235
Subject’s ID: JAVA PROGRAMMING
Assignment due: March 10,2021 Assignment submitted
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24

Partial preview of the text

Download Java assignment 1 Greenwich and more Essays (university) Java Programming in PDF only on Docsity!

Higher Nationals in Computing

JAVA PROGRAMMING

ASSIGNMENT 1

No. 1

Learner’s name: NGUYEN CHI BAO

Assessor name: Nam Lam

Class: GCS0903A

Learner’s ID: GCS

Subject’s ID: JAVA PROGRAMMING

Assignment due: March 10,2021 Assignment submitted

ASSIGNMENT 1 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing

Unit number and title

Submission date Date Received 1st submission

Re-submission Date Date Received 2nd submission

Student Name NGUYEN CHI BAO Student ID GCS

Class GC0903A Assessor name LAM NGUYEN TRUNG NAM

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)

3 Assignment 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 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.

4 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.

6 TABLE OF CONTENTS Table of Contents ASSIGNMENT 1 REPORT .............................................................................................................. 8 1.INTRODUCTION: ......................................................................................................................... 8

  1. REQUIREMENT .......................................................................................................................... 9 3.UI DESIGN .................................................................................................................................. 11 4.Implementation: ........................................................................................................................... 16
  2. TEST:.......................................................................................................................................... 26 6.Conclusion: .................................................................................................................................. 33
  • Figuress 1 Employee Manage TABLE OF FIGURES
  • Figuress 2 use case
  • Figuress 3 implemention of Use case
  • Figuress 4 wire frame
  • Figuress 5 wire frame
  • Figuress 6 Wire frame
  • Figuress 7 Wire frame
  • Figuress 8 Wire frame
  • Figuress 9 Application of Employee System mange
  • Figuress 10 Add CE Employee
  • Figuress 11 success add CE Employee
  • Figuress 12 add another Employee
  • Figuress 13 Sucess add BE Employee
  • Figuress 14 Load and Save Data

9

2. REQUIREMENT

Use case for Project Employee Manage is below:

  • usecase 1: Add a new CommissionEmployee and BasePlusCommissionEmployee
  • usecase2: Display the list of employees of a type
  • usecase3: Display the commission and salary of an employee
  • usecase 4: Calculate all the totalSales
  • usecase5: Calculate all the total salary and commission

Use case Diagram Design:

Figuress 2 use case Figures 2 Use case Diagram

10 FigureFiguresFiguress 2 3 3 Implementation Design of use case 1 implemention of Use case

Implementation of use case 1: Add new ComissionEmployee and

BaseplusCommissionEmployee

Figure 3. Implementation Design of use case 1

12 2.Employee Manage system wireframe: Figure 5. Wireframe 2 FigureFiguress 4 5 wire frame 2

13 3.Wireframe of Employee Manage system when create an Employee: Figure 6. Wireframe 3 FigureFiguress 5 6 Wire frame 3

15 5.Wireframe to manage Employee Salary Figure 8 Wireframe 5 FigureFiguress 7 8 Wire frame 5

16 4.Implementation: The main source codes: Figure 9. Main codes 1

  • Array List to create Employee

List (create the Employee object,

each time the app user create a

new employee, then add the

employee object to the collection

list).

Import.javax.swing.JFrame;[]

  • Is a line that using window builder in

marketplace of IDE Eclipse to easy build a GUI

App for Employee manage system app.

Figure 8

18 Figure 10 Figure 11

Explain main codes 1 and 2:

    • CommissionEmployee is a kind of Employee.
  • ’protected’: is used for the attributes we (developers) want the child class to inherit. Figure 11.Maincode 3

19 Figure 12 Figure 13 Figure 12.Maincode 4