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.
ANONYMOUS wrote
Can you please clarify what you mean by "handle"? The Iterator documentation (https docs.oracle.com en java javase 13 docs api java.base java util Iterator.html) says that a NoSuchElementException is thrown when there are no el...
ANONYMOUS wrote
Note that the test does not consume the iterator until exhaustion. It only consumes the first six elements.
To quote the project specification "The iterator should not simply load the entire list and then iterate over it, as if we nee...
ANONYMOUS wrote
I assume you meant to post this as a new question rather than a reply to someone else's post.
As a quick answer The project uses a range of concepts from across the semester, but the ones other students seem to be needing to review ar...
ANONYMOUS wrote
I am not sure I understand your question. What do you mean by "actual conditions" and "generic"?
As best as I can interpret your question, you appear to be asking what elements to filter out? Per the instructions and documentation, the...
ANONYMOUS wrote
I am not sure I understand your question, but if you are asking what I think you are, that is basically what you have been asked to implement for this task.
The instructions, documentation comments, and tests provide a clear specificat...
For those who wish to collect them, your mid-semester test papers are now available for collection from the CSSE front office.
The front office is generally staffed between 09 00 and 16 00 on weekdays. The papers will be available until Friday 17th Ma...
The CITS2005 Project has been released. You can find it under the Project (https lms.uwa.edu.au webapps blackboard content listContentEditable.jsp?content id 3592232 1 course id 90611 1 mode reset) link in the sidebar on LMS.
The project is due a...
Marks for the Mid-Semester Test have been released on csmarks (https secure.csse.uwa.edu.au run csmarks).
I hope to be able to make test papers available for students to review and collect later this week. I will make an announcement if and when I ...
ANONYMOUS wrote
The lab sheet invites you to add your own tests, as the sample tests provided are not particularly thorough (hence the existence of the hidden tests).
The lab sheet also gives clear instructions on how your submission will be run to te...
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...
ANONYMOUS wrote
I am not even sure what you are asking here. What do you mean by "specify the directory ... at the very beginning of every source code"? If you mean declare them all as part of a package, no, that would cause the specified way of invo...
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...
ANONYMOUS wrote
We are getting them marked as quickly as we are able, but there are over 400 students in this class and most of our markers are also students with their own schedules.
With luck, I am hoping to get them done by the start of next week, ...
While your notes are mostly correct, they do contain a number of errors. I am probably not going to be able to address them all here, but I have already explained the answers in a lecture and a PDF of the answers is available on LMS under the Mid-Sem...
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...
ANONYMOUS wrote
Dependency can have various meanings, and I am not sure how you are using it here. The same goes for the concept of flexibility.
As a sweeping generalization, I would say that interfaces are "more flexible" than inheritance. Interfaces...
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.
ANONYMOUS wrote
This is an example of method (in this case specifically constructor) overloading.
There is no universally accepted definition of polymorphism, but overloading is generally considered an example of "ad hoc polymorphism", where the behav...
ANONYMOUS wrote
This is a quirk of programming convention that was unfortunately not specified in the question
In programming, we often do geometry in "screen coordinates" such that the origin is the top left corner of the screen, with x increasing...
ANONYMOUS wrote
The official information we have given is that it may cover any material up to and including week 6. Since, as you say, unit testing was only covered briefly in lecture 12, the test would only be able to include questions on that brie...
ANONYMOUS wrote
You should try to solve the problem yourself without looking at the answers first, so no, there is no need to follow the example answers exactly.
It is not entirely clear what you mean by "it does not edit the grid in the intended wa...
The mid-semester test for CITS2005 will be held on April 18th at 17 00 in Wilsmore (Surnames A-M) and Tattersall (Surnames N-Z) lecture theatres. Full details are available on LMS in the Mid-semester Test Info (https lms.uwa.edu.au webapps blackbo...
Yes, though with at least one minor alteration. Due to venue capacity restrictions we have had to move the midsem to 17 00 on the same day. There should be an entry in your timetables. I am trying to get the unit outline updated currently.
For all ass...
For context for anyone who is confused, this student emailed the unit email inbox with the above question, and I answered their question and asked them to post their question and the result here for the benefit of other students. So the first message...
There are a couple of options for how to get input in a Java program that we have covered so far...
You can indeed use Scanner . You can construct a Scanner object wherever it makes sense (probably in main , for a little example like this) and use...
Please be aware that all Tuesday and Wednesday labs in CSSE 2.03 have been relocated to CSSE 2.05. As these are relatively recent changes, they do not appear in the timetable system.
Additionally, shortly before the start of semester we were able to a...
Update I have uploaded the old recording to Echo and it is now processing and should be available shortly. Let me know if there are any further issues.
It has come to our attention that an issue with the automated enrollment system may have allowed some students to enrol in CITS2005 without meeting the prerequisites.
Please take care to check that you meet all the prerequisites listed in the handbook...
Hi all,
We are aware of this issue. It seems there was an issue with the lavalier mic pack but not with the hand mic. We are digging up a lecture recording from last year, and will post that ASAP.
Cheers,
Gozz
This unit has a mid-semester test that will be held in week 7 (calendar week 16). Due to capacity limitations of the venues we have been assigned for lectures, we require a different venue for this test. This alternative venue is not available at our...
Since in this unit we will only ask you to submit Java code, not compiled bytecode, all that matters is that any code you submit is compliant with the Java 11 specification. So long as you don't use any features introduced in more recent versions, th...
Hi Bill,
Particularly since one of the selling points of Java is "write once run anywhere", there are no requirements to use a particular system. We will probably use OpenJDK by default when marking, but since we are using Java version 11 in this unit...
Monday 04 03 is a public holiday. As a result there will be no lecture that day. instead we have been allocated a replacement lecture
Time Friday 08 03 11 00 am
Location GGGL G21 Webb Lecture Theatre
For those unable to make this new slot, a reco...
We have just learned that due to a timetabling error, CAS does not show CITS2005 as having a lecture on Monday 26 02, the first day of semester.
This is in error. We will have a lecture from 13 00-14 00 in Wilsmore, as is timetabled for ever subseque...