Question: SET 2 : Excirse # 1 : Create a Student class that has the following attributes: name ( String ) , Id ( String )
SET :
Excirse #: 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; ;
Input file
StudentInfo.txt
load
Outpu file
StudentInfo.out
Sample input file for StudentInfo.txt:
Ali Abdullah; ;
Maryam Mohammed; ;
Alia Ahmed; ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
