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.
The specification clearly says
"You should submit your solutions via cssubmit (see the link in the LMS menu). Submission is due at 15 00 (3 00 pm) Tuesday the 30th of April.
You must submit exactly the following Java source code files
- Empty.jav...
SetExpression.java
SetExpressionTests.java
Should these files be submitted along the .java files because in SetExpressionTests , testCustom method need our own tests is this function only for testing purposes.
ANONYMOUS wrote
From the lab sheet
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.
Due to a large number of students getting confused by the time of the deadline, I have decided to grant everyone an extension for the Assessed Lab.
The new submission deadline is 15 00 (3 00 pm) this Tuesday, April 30th.
The new deadline has been chose...
In the lab description, you said "Range Constructor takes two integers, the lower and upper bounds." Does it mean the data type of lower and upper bound is necessarily "int" in Java. Is it possible that you ask for a range of 0..100 000 000 000 . (...
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.
ANONYMOUS wrote
Hi. If you think that the comment is repetitive, you can omit it on the other classes.
However, I suggest you commented some of the algorithms that you implement by your own . For example how to check whether an Union or In...
I have used comments to describe which method in the superclass I am overriding and the purpose of using the Ov r i e a n t t o , b t I m n t s r f i s n c s a y t e p r p a i g t i n e e y f l o a h s b l s . W u d t i e c n i e e x...
The specification does not explicitly require you to write a constructor for every class, and I do not see where in the rubric you would lose marks for not writing a pointless constructor.
It definitely wouldn't affect correctness, so the only place y...
While this has been asked indirectly previously, is the constructor for the Empty class strictly necessary, as it's redundant due to the implicit constructor already allocating required memory and no variables needing to be initialised with specific ...
ANONYMOUS wrote
The lab worksheet instructs you to implement subclasses of the SetExpression abstract class. This requires you to implement the contains method. The worksheet and the comment on the contains(elem) method also explain that it "Ev...
The assessed lab worksheet provides instructions on how describe() should behave for each different class. It does not ask you to simplify or reformat expressions. To do so would in fact be considered wrong, as it is no longer a description of the ...
ANONYMOUS wrote
The describe() method is required to return a String . The worksheet specifies the format of string that a Range object should return. Changing the representation as you are suggesting would not be in compliance with the specific...
ANONYMOUS wrote
I will add Please do not print anything. No part of the specification asks for you to print anything, and while doing so would not make your code wrong, and so would likely not cost you marks (except perhaps for style, given it is un...
ANONYMOUS wrote
You do not need to use anything that we have not covered in the lectures, previous labs, or this lab sheet.
As was said in one of the lectures The purpose of Ov r i e s t x r s o r i t n h t t i e h d s o l v r i e o e f...
See the clarifications added to the lab sheet. In summary You are not expected to handle errors outside the specification.
For the particular example you give, I will point out that if our tests attempted to pass a float to a constructor expecting ...
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.
If your code behaves as is required of it, that is sufficient. The specification does not impose any requirements on the...
I believe cssubmit will happily support either without issue, but per the instructions I would prefer you submit all the files not in a zip. Submitting a zip will not cost you any marks, but might make marking a little more of a headache as the marke...
ANONYMOUS wrote
I tried to choose the wording "communicate intent and reason" carefully. It is not necessary to simply narrate what your code is doing, as the code already says that clearly. Your comments should explain why you have decided to do t...
As we can see in the abstract class SetExpression , the signature of the describe() function is public abstract String describe() . It means that it must RETURN a string.
Because the Empty class doesn't have any properties, there...
My suggestion is that you still need to include comments even though the code is self-explanatory. Your code may seems self-explanatory to you, but it may not to others.
As every class has different properties, it is a good idea to include comments to...
Should describe() print a string or returning a string when called?
The constructor for empty class requires no arguments, however does it require anything within the to form an object in that class?
ie) writing "public Empty " on it's own won't ac...
Annotations like Ov r i e o ' e l y c a g h o e i e e b r c r e t y h y j s r v d n o m t o o t e c m i e o r o a c i g
If a child method is intended to override a parent method, you should ALWAYS use Ov r i e o t e c ...
Hi,
This can be seen as a general question or a question related to the assessed lab, but I was wondering about the appropriate uses of the Ov r i e a n t t o . t o s i t n e o o e r d a e t m t o , y u s o l L A S u e O ...
According to the Assessed Lab folder it says
"You should submit your solutions via cssubmit (see the link in the LMS menu). Submission is due at 11 59 am Sunday the 28th of April. You must submit exactly the following Java source code files
Empty.jav...
Dear Max and Gozz,
For the assessed lab, are we expected to catch the error for the hidden test? (e.g. if the argument for creating a new object is a floating point number or a string instead of an integer, do we need to catch the error? ) Thanks
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 Style section of the rubric for the assessed lab says we need to use "comments to communicate intent and reason".
What sort of comments are required to obtain this mark, and do we need to include comments even if the code is self explanatory?
Please be aware the Assessed Lab (https lms.uwa.edu.au webapps blackboard execute content blankPage?cmd view content id 3592271 1 course id 90611 1) has been released on LMS.
It is due at 11 59am on Sunday the 28th of April.