Question: k set the instance variable id to the parameter provided * if i is less than 1, id should become 1 k otherwise, id should

 k set the instance variable id to the parameter provided *

k set the instance variable id to the parameter provided * if i is less than 1, id should become 1 k otherwise, id should become i. * @param i private void setId(int i) //to be completed k* * set instance variables name, id and marks to corresponding parameter provided. k use the setter to set the id. you should make a deep copy for marks, NOT A SHALLOW COPY *@param name * @param id *@param marks public GradebookEntry (String name, int id, ArrayList marks) //to be completed *@return total marks (0 if 0 assessments) public double getTotal() return 0

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!