




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
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.
Typology: Assignments
1 / 28
This page cannot be seen from the preview
Don't miss anything!





















JAVA PROGRAMMING ASSIGNMENT No. 1 / 1 Learner’s name: Le Dong Khoa Assessor name: Nam Lam Class: GCS0904A Learner’s ID: GCS Subject’s ID: 22SP01-PROG Assignment due: March 11th^2022 Assignment submitted: March 10th^2022
ASSIGNMENT 1 FRONT SHEET Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Submission date March 10th^2022 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Le Dong Khoa^ Student ID GCS Class GCS0904A^ Assessor name Nam Lam 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)
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.
Unit Learning Outcomes LO1 Understand basic programming skills and OOP paradigm LO 2 Understand how to detect errors and handle errors LO 3 Understand how to working with files in applications LO 4 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.
1 ASSIGMENT
Problem solving in business relates to establishing processes that mitigate or remove obstacles currently preventing you from reaching strategic goals. These are typically complex issues that create a gap between actual results and your desired outcome. They may be present in a single team, operational process, or throughout your entire organization, typically without an immediate or obvious solution. To approach problem solving successfully, you need to establish consistent processes that help you evaluate, explore solutions, prioritize execution, and measure success. In many ways, it should be similar to how you review business performance through a monthly plan review. You work through the same documentation, look for gaps, dig deeper to identify the root cause, and hash out options. Without this process, you simply cannot expect to solve problems efficiently or effectively. There is a simple business problem that we may have to solve: In business activities for sales field, we need to have employees. When you step foot into a store or showroom, you will be greeted by store staff and introduced to you. It's the sales people. A salesperson is a person responsible for receiving customers, consulting, and recommending products or business services. But, we need to divide into 2 kinds of employees. To solve it, we need to create an application that able to manage employee information. Development work included construction of the core system framework, creation and management of accounts, employee profiles, and electronic timesheets, and a foundation for future modules. Those employee management tasks that we selected to integrate in the system included: employee profiles, electronic timesheets, employee performance reviews, and the hiring process. I will choose java language to code this application.
Functional requirement Non-Functional requirement
3 Figure 2 : Allow Employee to register their role
4 Figure 3 : Sell Items
6 Figure 5 : Report package
7
Wireframing is a way to design a website service at the structural level. A wireframe is commonly used to layout content and functionality on a page which takes into account user needs and user journeys. Wireframes are used early in the development process to establish the basic structure of a page before visual design and content is added. Here is some wireframe of the application: A. Admin login Figure 6 : Admin login
9 C. Manage Product Figure 8 : Manage Product
10 D. MANAGE SALES Figure 9 : Manage sales
12
A. SOURCE CODE WITH EXPLAINATION BELOW Figure 11 : Main Frame The first thing I do is to design the frame that using to input, add and load the employee information, I had to change the variable name to make it easier for my coding part. Figure 12 : Import Swing is the Graphical User Interface(GUI) widget toolkit for java. and javax is the package where different classes, interfaces, and other methods are included which are essential for the swing application development. So, I use “import javax.swing.*” in my program, I can use all the functionality provided by the swing.
13 Figure 13 : Open manage employee from another JFrame Then, I create another frame called admin login and connect with employee management frame. It will be verry security that you need to have a permission to add new employee. That will make sure that the system will not be accessed by public people. Figure 14 : Show code