



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Java is a programming language and computing platform that was initially introduced by Sun Microsystems in 1995. It has grown from its modest origins to power a significant portion of the digital world of today by offering the solid foundation upon which numerous services and applications are developed. Java is still used in cutting-edge goods and digital services that are being developed for the future.
Although the majority of current Java applications integrate the Java runtime with the application, there are still plenty of programs and even certain websites that require a desktop Java installation in order to work. This website, Java.com, is made for users who might still need Java for desktop programs, particularly those that support Java 8. Instead of going to dev.java, users and developers who want to study Java programming should go to oracle.com/java, while business users should do the same. A Java application will be conceived, constructed, and introduced in this report.
The scoring management system used by students will be used as a small business challenge in this report. Some of the fundamental criteria include:
The application's data can be stored into a file, and users must be able to access and update that file. The program is capable of performing some quick calculations, such as calculating a student's average grade.
In order to layout content and functionality on a page while taking into account user needs and user journeys, a wireframe is frequently utilized. Before adding visual design and content to a page, the basic framework of the page is established using wireframes early in the development process. As it should be, the UI design in this project is created before any coding is done. The user interface consists of five panels: one for the title, one for the icon, and the others for the grading system. There is a table as the result of the grade after inserting and the data after being calculated into a pleasure results for the users.
The project's appearance after the coding process is complete will be illustrated in the following image:
The figure 2 above is the screen shot of my program's front-end, which is nothing but buttons and text fields. But it can help me to explain a little of my program.
The number 1 red box in the figure 2 is where the users can insert their students' information, it includes the student ID, first name, last name, phone number, and the class they are in.
The number 2 red box in the figure 2 is where the users can insert their students' grades. It has 12 subject as it shows the in picture. This is a tab panel, so there is another tab behind it, which will be showed later.
The number 3 red box in the figure 2 is where the users can save or delete the data, which are 'Save' and 'Delete' buttons. They can also avoid wasting they time clearing all the boxes at once by pressing the 'Reset' button. It is obvious that the users need to close the program after using, the 'Exit' button is only for that purpose. After the users press the 'Save' button, in order to not letting the data lost, it is saved into a text file. The users can close the app without concerning about the data getting lost. After they re- use the app, they can just press 'Load data' button to get their data saved pop out. The 'Export' button is used to print a PDF file.
The following figure will continue illustrating the other part of the front-end:
After inserting the students' grades and information, the users can be able to view the grade via the 'View score' panel as shown as the number 1 red box in the figure 3. The average is calculated by adding the grades of 12 subjects and then divine it into 12. The highest score and the highest subject of a student will be shown as well as his lowest score and lowest subject.
until the users make it below 100 (there will be a message box so that users know when to change). If it is still 0, there would be no problem and the application will be still running.
For the figure 14, if the users do not fill all the boxes, bug will appear and the application will crash immediately. So the figure 14 is one of the try- catch method that really important in this project.
For the figure 15, the Reset button will make all the filled boxes become blank just within few millisecs. It will clear the boxes in the Student information panel, Insert panel, and View Score panel.
When the users click on the 'Exit' button, there will be a message box pop up and ask them if they really want to exit the application or not. In-case they misclick the 'Exit' button, they will press the 'NO' option button and continue their work with the app.
For the figure 18, I set the Components separate with each other by the comma, so the value of should be inserted in the table of the application without much problems.
If the users delete without select any row or there is no row in the table, there will be obviously nothing to delete. For this situation, I make the application pop out the message box and warn the users to choose something to delete.
There are some other text fields that requires only numbers or only letters, I also put some constraints to avoid bug or application crashing. Such as: only put the numbers for the score and only letters for the name.
Input Data : Insert Linh123 Expected Result : 123 cannot be inserted Result : 123 cannot be inserted since there is a constraint not to insert anything except the letters. The same with the expected result.
Input Data : Insert Linh100 Expected Result : Cannot be inserted Result : Cannot be inserted since there is a constraint not to insert anything except the numbers. The same with the expected result.
Input Data : Insert 74.9 Expected Result : 74.9 is inserted Result : Cannot be inserted since there is a constraint not to insert anything except the numbers. NOT the same with the expected result.
Java Syntax Java Output Values / Print Text Java Comments Java Variables Java Data Types Java Type Casting Java Operators Java Strings Java Math Java Classes and Objects