Question: Help needed with creation and use of objects for java programming. Class Design Student -create Name - a private instance variable with public getter and
Help needed with creation and use of objects for java programming.
Class Design Student -create Name - a private instance variable with public getter and private setter -create Scores - a private instance with neither getter nor setter
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.
Class Design: Driver
The Driver is intended to drive the program and allow you to interact with the Student object. (checking for valid conditions) - Create an instance of a Student given valid conditions - Add a valid score - View valid scores - Update valid scores
(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
Get step-by-step solutions from verified subject matter experts
