![jgrasp wedge2: exit code for process is 1 jgrasp wedge2: exit code for process is 1](https://switchintensive.weebly.com/uploads/1/2/4/3/124322405/851880860.jpg)
SetSize(WIDTH, HEIGHT) // set the window sizeĬontainer pane = getContentPane() // get the container SetTitle("Grade Calculator") // set's the title Private JButton exitB, nextB, prevB, calcGrade Private JTextField stNameTF, tst1TF, tst2TF, tst3TF Private JLabel stNameL, tst1L, tst2L, tst3L, have a label and a textfield, (L) and (TF),
![jgrasp wedge2: exit code for process is 1 jgrasp wedge2: exit code for process is 1](https://user-images.githubusercontent.com/11014462/32064927-988dfaba-ba7b-11e7-9c5b-4e945f2c6deb.png)
Private double classAvg, stAvg, totalScore Private StudentList sList = new StudentList ĭouble test1, test2, test3 // Grades on three tests.ĭouble getAverage() import java.util.* ĭouble getAverage() // compute average test grade Public class GradeCalculator2 extends JFrame O Loop through the students and save the data to the datafile. O When saving, open the datafile for writing O Make all modifications to the data in the array of students. O load all the data into an array of students from the file, The way to handle changes in data using a text file is:.I would like that system to accept a student with no grades, then later add one or more grades, and when all grades are entered, calculate the final average or grade.Ěn accessor is needed to save the test grades, which should always be numbers.The function saveData, your function to load data, and the constructor will need a “throws IOException” clause. The way to solve this is as follows:Īssuming that you have a method called saveData that saves the data, change its call as follows: NOTE: You need actionCommand to handle saving a file and you cannot modify actionCommand with a “throws IOException” clause. You need to create a graphical user interface that allows you to:Į.ěased on a radio button setting display either the average or the letter gradeĤ.Ě possible graphical look is as follows:ĥ.Ědd comments and use proper indentation. Need another class which will contain:Ĭ.Ĝonstructor that reads data from a text file and sets up the studentsģ. Note that the accessor and mutator for Student grades has to have an argument for the grade index.Ģ. Mutators (set functions) for items a, b, cį. I will put the instructions first, then my code, then the errorsĬreate a program to enter grades and calculate averages and letter grades.Ĭ.Ě constructor that clears the student data (use -1 for unset grades)ĭ.Ěccessors (get functions) for each of the above, average, and letter gradeĮ. Can someone work with me on this program.