Question: Java help needed with the following. It would be very helpful if comments are added to understand the code. Create two Class objects ( two

Java help needed with the following. It would be very helpful if comments are added to understand the code.

Create two Class objects ( two .java files) Student Driver

Part 1 Class Design: Student The Sudent class is intended to be an abstract and simplified representation of a student. Each student will have an array of assignment scores. Data to Store Name a private instance variable with public getter and private setter Scores a private instance with neither getter nor setter Actions Constructor - Take in as argument the name as well as maximum number of assignments the student will have for the quarter (enforce invariants) - Initialize the scores to -1 (to indicate it doesnt yet exist) View Assignment Scores - Allow user to look up existing assignment scores (only ones that have been reported dont report any -1 scores). Enforce invariants. Report New Assignment Score - Allow user to report a new assignment score (goes into the latest assignment slot that dont currently have a score. What should you do if there are no slots open?). Enforce invariants. Update Assignment Score - Allow user to update existing assignment score. Enforce invariants. Part 2 Class Design: Driver The Driver is intended to drive the program and allow you to interact with the Student object. Positive testing (checking for valid conditions) Create an instance of a Student given valid conditions Add a valid score View valid scores Update valid scores Negative testing (checking for invalid conditions) Attempt to create an instance of a Student given invalid conditions Attempt to view scores when none has been reported Attempt to add an invalid score Attempt to update a score that hasnt been entered yet Boundary testing Attempt to add the minimum score Attempt to add the maximum score

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!