Docsity

Java Programming prog101, Schemes and Mind Maps of Information Technology

Partial preview of the text

Download Java Programming prog101 and more Schemes and Mind Maps Information Technology in PDF only on Docsity!

Java Programming(PROG191)

ASM

Name: Lê Quốc Huy

ID: GCS

Class: GCS1003a

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

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.

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 Student ID

Class Assessor name

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:

I. Introduction

At my library, people are using books more frequently right now for both enjoyment and informational purposes.

This results in manual library management, which makes it challenging, time-consuming, and impossible for us to maintain

the proper level. As a result, I made the decision to write a Java application that enables book management. I can regulate

the pricing and quantity of the book and know its exact contents thanks to this software.

II. Requirement

I was able to resolve some of the following issues with the aid of the java application I wrote:

  • 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 III. UI design

2. Explain classes

Then, using getter and setter methods, I implement Java's encapsulation to establish accessibility for the private attributes I

initialized earlier and enable their viewing and modification.

I use inheritance in Java on this class. I may obtain the hashcode value of the aforementioned initialized components by

invoking the hashCode() function. In addition, I use the equals()) method to compare two objects in a semantic way (by

comparing the data members of the class).

I've specified properties like file (for file read and write capability) and a new List called book List that is connected from

the Book in the bookManagement class. java class I developed, a memory variable that serves as a model for use Two

integer variables, index and editIndex, are utilized to show and interact with information in the information display

function.

I then construct a new method called bookManagement and instantiate it using the values of the previously generated

properties. To pass values to the methods and functions below, I'll use them.

To display the data printed under the labels Total, Borrowed, and BorrowedCost, which are needed to determine the total

number of books, the number of books to borrow, and the sum of books to be borrowed, I initialize the thongke array.