If you are working on the totalCredits() method now, there probably isn't any need to post the other code.
What is the method supposed to return? How does it find/compute that value?
Where are...
Type: Posts; User: Norm
If you are working on the totalCredits() method now, there probably isn't any need to post the other code.
What is the method supposed to return? How does it find/compute that value?
Where are...
What are the steps the code must take to do that?
What is the IDEA behind the code that was posted? Do you have a list of steps the code is supposed to do to solve the problem?
Please explain why you think something is missing. Is the output wrong?