It's UWAweek 20 (1st semester, week 11)

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 159 articles.
Currently 4 other people reading this forum.


 UWA week 18 (1st semester, week 9) ↓
SVG not supported

Login to reply

👍?
helpful
1:13pm Mon 29th Apr, Tin CP.

ANONYMOUS wrote:

Hello Max and Goz, Mathematically when we use union on two empty sets, the result is an empty test. I'm really confused on how the result should be displayed. Do you want the expected answer to be: {} or ({} U {}. Thank you for your time.

From the lab sheet: describe() should represent it as the two sets (in the order given to the constructor), with a capital 'U' between them (to approximate the union symbol), all wrapped in parentheses, e.g: "({} U {7})"

You should display it as ({} U {}), there's no need to evaluate the expression. For instance, the example given evaluates to {7} but we ask you to display ({} U {7}) instead.

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