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 27 tagged articles
Showing 27 of 164 articles.
Currently no other people reading this forum.


 UWA week 20 (1st semester, week 11) ↓
SVG not supported 2:30pm Fri 17th May, Hui-Ling H.

Have a minor question is it compulsory to utilise Itertools we implemented in previous tasks?


SVG not supported 2:22pm Fri 17th May, ANONYMOUS

Dear Prof, could I add some "import" to the studentstats code?thanks


SVG not supported 11:19am Fri 17th May, Andrew G.

ANONYMOUS wrote The specific test you are referring to is testUnitNewestStudents() . The javadoc comments on unitNewestStudents() says "Returns an iterator over the students who have taken a given unit, from newest to oldest ." The ids list y...


SVG not supported 11:02am Fri 17th May, Andrew G.

ANONYMOUS wrote This is probably the first task in the project where you really need to reason about and design your solution before trying to write it. Imagine yourself as the StudentListIterator , and imagine receiving calls to next() and revers...


SVG not supported 8:30am Fri 17th May, ANONYMOUS

Dear Max and Gozz, As mentioned in the StudentList.java "Student IDs are assigned in strictly increasing order, and the list is sorted in ascending order by student ID such that older student records appear at the start of the list and newer stud...


SVG not supported 6:33pm Thu 16th May, Hui-Ling H.

I passed the test and thanks for the hints for directing me to the right way I really overcomplicated the the task lol


SVG not supported 5:32pm Thu 16th May, Jacob R.

Erm... Well the constructor shouldn't consume any part of the iterator. And hasNext() also shouldn't consume, so I assume there's an issue somewhere in there.


SVG not supported 5:30pm Thu 16th May, Danyan C.

I cannot pass the test, and it returns called next reverseNext too many times or too soon, expected 0, recerved 1. Would you please give me some hit about that? Thank you very much


SVG not supported 4:23pm Thu 16th May, Jacob R.

I find it quite likely that you're overcomplicating it or trying to consume the whole iterator into a stack or something like that, when the iterator should largely be completely passive and only make method calls to the double ended iterator as and ...


SVG not supported 4:21pm Thu 16th May, Jacob R.

It's a reversed double ended iterator. If you're calling next, it should be consuming from the end of the double ended iterator passed in the constructor, if you're calling reverseNext, it should be consuming from the start of the double ended iterat...


SVG not supported 4:18pm Thu 16th May, Danyan C.

I got stuck, too.


SVG not supported 4:16pm Thu 16th May, Hui-Ling H.

Stuck here for 2 days and still got nothing so here I am asking for help. I just can't figure out a way to reverse the Iterator without using next() which will increase the count. I've tried Stream to read from memory and Reflection to create a new ins...


SVG not supported 3:17pm Thu 16th May, Andrew G.

I do not understand your confusion. The test appears to be functioning as expected. What do you mean by the iterator being "at the last element"? NoSuchElementException should only be thrown when there is no element to return. The test you appear t...


SVG not supported 12:47pm Thu 16th May, Fudong Q.

I noticed in the StudentListIteratorTest that when where is only one page and the iterator is at the last element, calling next() method will go back to the first element. This is contrary to the common behavior of throwing a NoSuchElementException. Y...


SVG not supported 2:41pm Wed 15th May, Andrew G.

I think your wording is a little unclear, so I am not 100 sure I understand what you are asking. I believe you are asking whether the specified number of retries is for the whole lifetime of the StudentListIterator, or for each attempt to call getP...


SVG not supported 1:41pm Wed 15th May, Andrew G.

By the specification, you should not preload the first element on construction, as it says you should consume elements from the iterator only as required. If I call your filter method and then do not use the returned iterator, there was no reason for...


SVG not supported 5:28pm Tue 14th May, Tin CP.

You can pre-load the first element; the iterator doesn't know how many elements exist after filtering without doing so.


 UWA week 19 (1st semester, week 10) ↓
SVG not supported 3:53pm Fri 10th May, Andrew G.

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...


SVG not supported 3:48pm Fri 10th May, Andrew G.

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...


SVG not supported 10:05pm Thu 9th May, ANONYMOUS

1. For StudentStats.java The relevant test mentions Can be done in 3 calls, but allow some leeway stats.assertLessThanEqual(list.getCountGetPage(), 5, "too many calls to getPage()"); And they use this given id list "20948760", "20948758", "20948756"...


SVG not supported 4:57pm Thu 9th May, ANONYMOUS

Hello, I am struggling on some of the tasks and was wondering what lectures I should look at re-watch? Also are we suppose to create our own .java files within the itertools studentstats folder or do we write our code for the tasks within the Itertoo...


SVG not supported 3:34pm Thu 9th May, ANONYMOUS

ok thank you that makes more sense


SVG not supported
project project 👍x1  (all 5)
10:50am Thu 9th May, Andrew G.

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...


SVG not supported 10:48am Thu 9th May, Andrew G.

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...


SVG not supported
project project 👍x1  (all 5)
2:08pm Wed 8th May, ANONYMOUS

what is the actual conditions of the filter or is it just a generic filter?


SVG not supported 4:05pm Tue 7th May, ANONYMOUS

Is there a way to trim slice an iterator object? What will it look like when an iterator object is returned for this method?


SVG not supported 3:15pm Mon 6th May, Andrew G.

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...

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