Sales Management Application with Java GUI, Cheat Sheet of Java Programming

A sales management application developed using Java and a graphical user interface. The app helps sales agents manage inventory and sell goods efficiently. The key requirements, use cases, and implementation details are covered, including two separate classes and various algorithms for data management. The document includes a detailed test plan to verify the app's functionality. The user-friendly interface offers features for managing sales data, with error handling mechanisms. The app's benefits, such as cost savings and increased efficiency, are discussed, along with potential future improvements.

Typology: Cheat Sheet

2021/2022

Uploaded on 09/03/2022

huynh-bao-trong
huynh-bao-trong 🇻🇳

2 documents

1 / 30

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
ASSIGNMENT 1 FRONT SHEET
Qualification
BTEC Level 5 HND Diploma in Computing
Unit number and title
Unit 24: Object Oriented Programming with Java
Submission date
September 4th, 2022
Date Received 1st submission
Re-submission Date
Date Received 2nd submission
Student Name
Huynh Bao Trong
Student ID
GCC200034
Class
GCC0902
Assessor name
Tran Thi Kim Khanh
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)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e

Partial preview of the text

Download Sales Management Application with Java GUI and more Cheat Sheet Java Programming in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 24: Object Oriented Programming with Java Submission date September 4th, 2022 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Huynh Bao Trong Student ID GCC Class GCC0902 Assessor name Tran Thi Kim Khanh 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)

❒ Summative Feedback: ❒ Resubmission Feedback:

Grade: Assessor Signature: Date: IV Signature:

Table of Contents

  • Assessment Brief
  • I. Introduction
  • II. Requirement
  • III. UI design
  • IV. Use case
  • V. Implementation
      1. Explain program structure
      1. Explain classes
      1. Explain important algorithms
      1. Explain how to handle errors
  • VI. Test
  • VII. Result
  • VIII. Conclusion

I. Introduction Daily sales are familiar to sales agents. Traditionally, many merchants would keep records of their products on paper. So I designed and perfected the sales management application. The application will help sales agents manage inventory and sell goods. II. Requirement Before implementing the project, I built my own program with the following requirements. III. UI design IV. Use case

2. Explain classes The code of the program consists of 2 classes:

  • The Merchandise sales Manager class is used to create the interface as well as set the main properties for the software. This class is the main class used to write processing algorithms on the form.
  • The Merchandise class is used to initialize and save the initial values of the form such as Customer ID, Customer Name, Contact, Good ID, etc. This is also the class that has Constructors and Getter-Setter functions.
  • Button Update: Allows users to edit product information.
  • Button Delete: Allows the user to delete any message from the table.

4. Explain how to handle errors To handle errors during running of the software without interrupting or terminating the software, I used the Try - Catch method in Java programming. Take the data input method example:

VI. Test No Test case Function Input data Expected output Actual output Result 1 Verify that the data will be added to the table when the user enters all the data correctly and presses the "Add" button. Add function

  • Customer ID: C
  • Customer Name: Nguyen Thai Duong
  • Contact: 0355913474
  • Good ID: G
  • Goods Name: Mask Face
  • Quantity: 10
  • Cost: 2000
  • Date of sale: 2022 - 08 - 26 The program will display:
  • Customer ID: C
  • Customer Name: Nguyen Thai Duong
  • Contact: 0355913474
  • Good ID: G
  • Goods Name: Mask Face
  • Quantity: 10
  • Cost: 2000
  • Date of sale: 2022 - 08 - 26 The program will display:
  • Customer ID: C
  • Customer Name: Nguyen Thai Duong
  • Contact: 0355913474
  • Good ID: G
  • Goods Name: Mask Face
  • Quantity: 10
  • Cost: 2000
  • Date of sale: 2022 - 08 - 26 Pass 2 Verify that the system displays a "Duplicate Customer ID" message when the user enters the same Customer ID. Add function
  • Customer ID: C
  • Customer Name: Nguyen Tuan Anh
  • Contact: 0976533041
  • Good ID: G
  • Goods Name: Toothbrush The program will display: Duplicate Customer ID” The program will display: Duplicate Customer ID” Pass
  • Quantity: 20
  • Cost: 2000
  • Date of sale: 2022 - 08 - 26
  • Goods Name: Mask Face
  • Quantity: 20
  • Cost: 2000 Date of sale: 2022 - 08 - 26
  • Goods Name: Mask Face
  • Quantity: 20
  • Cost: 2000 Date of sale: 2022 - 08 - 26 5 Verify that the data is deleted from the table when the user presses the "Delete" button. Click on the data you want to delete and press the "Delete" button. The data will be deleted from the table The data will be deleted from the table Pass VII. Result
  • HomeScreen:
  • Add button:

When the user enters all the correct information and clicks the Add button, the data will be included in the table. When the user wants to add information to tables without entering the Customer ID, the system will notify "CustomerID cannot be left blank".