It's UWAweek 24 (1st semester, 2nd exam week)

help2005

This forum is provided to promote discussion amongst students enrolled in CITS2005 Object Oriented Programming.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying the 2 articles in this topic
Showing 2 of 257 articles.
Currently no other people reading this forum.


 UWA week 21 (1st semester, week 12) ↓
SVG not supported

Login to reply

👍?
helpful
8:26pm Tue 21st May, ANONYMOUS

Can I make changes in the UnitAverage method in studentstats.java?

Because after I implemented task 8 and tried running the tests (without beginning task 9) I got error for the UnitAverage method since it uses my implementation of StudentListIterator.


SVG not supported

Login to reply

👍?
helpful
10:36am Wed 22nd May, Andrew G.

ANONYMOUS wrote:

Can I make changes in the UnitAverage method in studentstats.java?

Because after I implemented task 8 and tried running the tests (without beginning task 9) I got error for the UnitAverage method since it uses my implementation of StudentListIterator.

You should not need to modify unitAverage(). This is a clear indication that something about your StudentListIterator is incorrect.

Technically, the instructions do not explicitly prevent you from doing so, but given that unitAverage() is provided as a correct example of correct Iterator use, modifying it to pass the tests may count as circumventing the tests, and likely means that your solution would lost style marks.

So I would strongly encourage you to not modify it. Go back and fix your StudentListIterator instead, as I can all but guarantee that you have made an error.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy