Question: (in java programming language) help me in this GUI question AND BELOW THIS IS PART #5 -b __________ ( WrongQuizGradeException.java) public class WrongQuizGradeException extends Exception

 (in java programming language) help me in this GUI question AND

(in java programming language) help me in this GUI question

AND BELOW THIS IS PART #5 -b

__________

( WrongQuizGradeException.java)

public class WrongQuizGradeException extends Exception { WrongQuizGradeException(){ System.err.println("Quizz Grade Must Be Between 0 and 10!!!!"); } }

___________ (Student.java)

import java.util.ArrayList; import java.util.Iterator; public class Student { private String name; private Integer ID; private Double GPA; private ArrayList GradesList=new ArrayList(); Student (String name, Integer ID, Double GPA){ this.name=name; this.ID=ID; this.GPA=GPA; } public void SetName(String n) {name=n;} public void SetID(Integer id) {ID=id;} public void SetGPA(Double GPA) {this.GPA=GPA;} public String getName() {return name;} public Integer getID() {return ID;} public Double getGPA() {return GPA;} public void addQuiz (double grade) throws WrongQuizGradeException { if (grade10) { throw new WrongQuizGradeException(); } GradesList.add(grade); } public double quizzesAvg() { Iterator I=GradesList.iterator(); double sum=0.0; while (I.hasNext()) { sum+=I.next(); } return sum/GradesList.size(); } public void Print() { System.out.println("Name: "+name+" ID: "+ID+" GPA: "+GPA); System.out.println("The Quizes Grades:"); Iterator I=GradesList.iterator(); while (I.hasNext()) { System.out.print(I.next()+" "); } System.out.println(" The Avg: "+quizzesAvg()); } }

_____________ (Test.java) public class Test { public static void main(String[] args) { Student S=new Student ("Ali",67,3.0); try { S.addQuiz(9); } catch (WrongQuizGradeException e) { e.getMessage(); } try { S.addQuiz(11); } catch (WrongQuizGradeException e) { e.getMessage(); } try { S.addQuiz(7); } catch (WrongQuizGradeException e) { e.getMessage(); } try { S.addQuiz(-1); } catch (WrongQuizGradeException e) { e.getMessage(); } try { S.addQuiz(5); } catch (WrongQuizGradeException e) { e.getMessage(); } //System.out.println(S.quizzesAvg()); S.Print(); } }

This programming question is a continuation of Assignment # 5-b 1. Create the following GUI, feel free to pick any suitable colors for your GUI components Student Control Panelx Load.. Save. Maximum quizzes average: Average GPA: Enable the user (by clicking "Load. buttons) to select a binary file with student objects using a JFileChooser. Make sure to restrict the user to selects only binary files. When user picks a file, load the data into an instance of StudentTree. Find the maximum quizzes average as well as average GPA and show the numbers on the GUI Student Control Panel? ? LoadS Save. Maximum quizzes average: 9.8 Average GPA: 3.2 The user should be able to click "Save." button to save the contents of the tree on another binary file using 3FileChooser. Make sure to handle all exceptions your code might have in an optimal way. Show error dialogs to tell the user about anything went wrong. 2. Write a report that contains the following: a. Introduction b. Problem Definition c. Design (using UML class diagrams) d. Exceptions Used e. Testing f. Team Member's Responsibilities g. Problems Faced (and how were overcome). and submit it with the complete source code

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 Databases Questions!