It's UWAweek 17 (1st semester, week 8)

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 selected article
Showing 1 of 73 articles.
Currently no other people reading this forum.


 UWA week 17 (1st semester, week 8) ↓
SVG not supported

Login to reply

👍?
helpful
4:16pm Mon 22nd Apr, Andrew G.

"Pranav Rajput" [email protected] wrote:

When considering edge cases (via custom tests) for the assessed lab, should I consider that the object references provided (for Union or Intersection classes, for example) as arguments when testing them could be null, or is that outside the scope of the assessed lab?

See the clarifications added to the lab sheet. You do not need to handle errors, as this is not a task given in the specification.

Also, for the Range and the Union/Intersection classes, do they need to have it actually compute the values (in Arrays or something similar) or is it enough to ensure the two methods being implemented in each of them (describe, contains) have their logic work as expected and tested in the provided tests?

If your code behaves as is required of it, that is sufficient. The specification does not impose any requirements on the internal workings and implementation details of your code. You are not required to use arrays.

Is there any reason you would have to explicitly compute the values? What problems could this cause? Would you code still work reasonably if I asked for Range(0, 1_000_000_000)? Consider these when making your decision.

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