This course has already ended.
You cannot submit this assignment

You need to sign in and enrol to submit exercises.

Assignment 24 (Number of Open Items)

Here is a Scala implementation of the above algorithm. It illustrates that you can use a stepper variable and an if within a for loop. However, there is something missing. What method call should go in the place marked ????

def numberOfOpenItems =
  var openCount = 0
  for current <- this.items do
    if ??? then
      openCount += 1
  openCount

A simple call that invokes a method on an EnglishAuction object will do. Please enter that method call in the field below.

Posting submission...

Earned points

0 / 4

Exercise info

Assignment category
Graded
Your submissions
0 / 10
Deadline
Wednesday, 11 October 2023, 18:00
Late submission deadline
Monday, 15 April 2024, 12:00 (-100%)
Group size
1-2
Total number of submitters
886