Question: SET 2 : Excirse # 1 : Create a Student class that has the following attributes: name ( String ) , Id ( String )

SET 2:
Excirse #1: Create a Student class that has the following attributes: name (String), Id (String) and a
GPA (double).
Create the following GUI to handle the student class.
Add button will read the student info from the text field, split on (; ), then create a student
object, then add the student to the text area using its toString() method.
Load button will read students information from an input file one by one, then split on (; ),
then add each student object to the text area until the end of the file.
Save button to save all students in the text area to an output file.
You should handle allerrors and report errors in the status label.
Design Preview [StudentFrame]
Student info
Ahmed Hassan; 202041236; 3.2
Input file
Student_Info.txt
load
Outpu file
Student_Info.out
Sample input file for StudentInfo.txt:
Ali Abdullah; 201984321; 3.8
Maryam Mohammed; 201894343; 3.9
Alia Ahmed; 202085675; 3.5
SET 2 : Excirse # 1 : Create a Student class that

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!