Question: APTest- arraylist APStudent class: creates a student with a first and last name, creates & adds to the ArrayList of all quiz for a student,

APTest- arraylist

APStudent class: creates a student with a first and last name, creates & adds to the ArrayList of all quiz for a student, and the contains methods to find information for that student (how many 5's, highest score....)

APQuiz class: contains information for a single quiz: subject name and score. Notice that there are 2 methods that never get called.

Test class: constructs a student with a first and last name; constructs an quiz with a subject and score so we can test the methods in APStudent.

There are 3 class in this program and I need you those 3 class and it need to be written in java language with comment on each code too.

APTest- arraylist APStudent class: creates a student with a first and last

AP Students Lab Examine the class APExam that includes the properties mySubject (a String that represents a subject like "Physics" or "Calculus") & myScore (an integer between or including 1 and 5). The class named APStudent includes the properties myFirstName and myLastName as well as a property named myExams that is an ArrayList of all APExam's taken by the student. This class must have a default constructor as well as a constructor that accepts the first and last names as parameters. It should also include accessor and modifier methods for both name properties as well as an accessor method for myExams. Also, the class must include the following methods addExam - adds an APExam object to myExams computeExamAverage - returns the student's average score on all exams findHighestExamScore - returns the highest exam score that the student has earned numberOfFives - returns the number of scores that were a 5. The client program named Test uses Scanner to allow the user to enter a student's first and last names as well as AP exam subjects & scores (in that order). When the user is prompted to enter AP exam subjects, he/she must be told to input the sentinel value "end" to indicate that he/she has no more exam subjects or scores to input. The program then uses the appropriate APStudent methods to compute and display the student's average exam score, the highest exam score, and the number of scores that were a 5

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!