It's UWAweek 16 (1st semester, week 7)

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?
Showing 20 of 46 articles
Showing page 1 of 3⬅ older  |  newer ⮕
Currently no other people reading this forum.


 UWA week 13 (1st semester, week 5) ↓
SVG not supported 10:04am Thu 28th Mar, Andrew G.

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



 UWA week 16 (1st semester, week 7) ↓
SVG not supported 3:45pm Tue 16th Apr, Andrew G.

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


SVG not supported 3:20pm Tue 16th Apr, Andrew G.

ANONYMOUS wrote These have now been released on the Mid-Semester Test Info page on LMS.


SVG not supported 3:19pm Tue 16th Apr, Andrew G.

Update 2024-04-16 Answers to the mid-semester test have been made available on the LMS Mid-Semester Test Info page.


SVG not supported 3:17pm Tue 16th Apr, Andrew G.

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


SVG not supported 11:53am Tue 16th Apr, ANONYMOUS

class BankAccount6 String ownerName; int balance; BankAccount6(String ownerName, int balance) this.ownerName ownerName; this.balance balance; BankAccount6(String ownerName) this.ownerName ownerName; this.balance ...


SVG not supported 3:14pm Mon 15th Apr, ANONYMOUS

Hello. Where can we find the answers to the sample test from last year?


SVG not supported 11:00am Mon 15th Apr, ANONYMOUS

Hi, I having trouble wrapping my head around the given answer for this question on the lms. Specifically, the part about checking if a point is within a rectangle as this is the Boolean used return x this.x x this.x width y this.y ...


 UWA week 15 (1st semester, week 6) ↓
SVG not supported 1:38pm Fri 12th Apr, Andrew G.

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


SVG not supported 6:27pm Thu 11th Apr, ANONYMOUS

Hi. I was wondering if the midsem test will be covering any material about unit testing since it was only covered briefly in Lecture 12.


SVG not supported 11:23am Wed 10th Apr, Andrew G.

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


SVG not supported 11:12am Wed 10th Apr, Danyan C.

I think it's judging the number of neighbours here, if there is surviving cell at this position then neighbours 1


 UWA week 14 (1st semester, non-teaching week) ↓
SVG not supported 8:36pm Sun 7th Apr, ANONYMOUS

Hi, I'm having issues getting the simulating the step working for my version of game of life. At the moment my method clones the grid, then reads off this clone to edit the original grid's values however it does not in the intended way. Should my met...


 UWA week 12 (1st semester, week 4) ↓
SVG not supported 5:48pm Wed 20th Mar, Emily W.

import java.util.Scanner; import java.util.Random; import java.lang.Math; public class Guess the Number public static void main(String args) Scanner sc new Scanner(System.in); System.out.println("Enter your lower starting range ...


SVG not supported 12:12pm Wed 20th Mar, Emily W.

For anyone interested, I have attached my results )


SVG not supported 11:51am Wed 20th Mar, Andrew G.

You can get either to work, but given that the isPrime method has no reason to depend on any object state, static makes the most sense.


SVG not supported 5:14pm Tue 19th Mar, Emily W.

Hello So, for lab 3 exercise 1, I wanted to add user attempts based on their input range, as I have previously done this as a python exercise. With python it's a bit simpler, like so min num guesses round(math.log2(B - A 1)). I have had a look a...


SVG not supported
labs Lab2Exercise2 👍x1  (both)
9:40am Mon 18th Mar, ANONYMOUS

emails is an array (or specifically an ArrayList) of objects of the class Email. The loop is a 'for-each' loop which uses the syntax for (datatype variableName collection) ... This means for each item in the collection array, store th...


 UWA week 11 (1st semester, week 3) ↓
SVG not supported 4:51pm Sun 17th Mar, ANONYMOUS

Could you please tell me what does this for loop mean? for (Email email emails) Thank you.


SVG not supported 10:16am Sat 16th Mar, Xiao Z.

In the writing of the isPrime method, the question doesn't say whether the method should be static or non-static. Should we be concerned about this, or just assume the default is non-static?


SVG not supported 12:56pm Thu 14th Mar, Zaid S.

Thanks a lot for the clarification.

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