Assignments

Assignments #

Assignments are released and evaluated via Codeboard.

Reminder. We need your Codeboard identifier to grant you access to the assignments. Please create one and share it (only once) with the lecturer (preferably via Teams).

Warning. Keep a copy of your own code (and back it up).
Do not rely on Codeboard for backup.

Testing your solutions #

Locally #

Haskell assignments #

Methodolody. We recommend the following:

  1. Create an executable file (e.g. MyFile.hs) on your machine, following this example.

  2. Follow the example, i.e use the main function to:

    • call each function that you implement (with an input of your choice), and
    • print the output.
  3. Once your function compiles and seems to run, copy-paste it to Codeboard to test it more extensively, as explained below.

Java assignments #

The tests for each assignment will be shared via Teams. They are identical to the tests executed by Codeboard.

Methodology. We recommend the following:

  1. Run the tests on your machine to develop and debug your code.
  2. Once your are satisfied with your solution, copy-paste it to Codeboard and submit it.

Requirements. To run the tests of a Java assignment locally, you will need Maven.

Instructions. To run a test (with IntelliJ, VSCode, Eclipse or Netbeans):

  1. Open the root folder of the assignment as a Maven project,
  2. In the file that contains the test, click on the corresponding Run arrow or button.

Via Codeboard #

Instructions. Within Codeboard, to check whether your code passes the assignment’s unit tests:

  1. Click on the assignment’s name.
  2. Click on the button Open in IDE:

$\qquad$

  1. Click on the name of the file that you want to edit (for instance, Utility.hs or Cards.hs for the first assignment).

  2. Replace with your own code the stub (a.k.a. placeholder code) for the functions/methods that you want to test.

  3. Click on the Compile button:

$\qquad$

  1. If your code successfully compiles, then click on the Test button:

$\qquad$

  1. Look at the logs to see which tests failed (input/expected output).

Hint. You can save your modifications by clicking on Project/Save changes.

Warning. No need to click on the Run button.

Submitting an assignment #

Instructions.

  1. Follow the instructions immediately above to test your code via Codeboard.

  2. If your code compiles, then you can submit it by clicking on the Submit button:

$\qquad$

Multiple submissions. You can submit an assignment as many times as you want (before the deadline). Only your latest submission will be taken into account.