Handling change money

Preparation

If you already worked on the first task just continue implementing classes in your project's de.hdm_stuttgart.mi.sd1.task2 package. Otherwise follow the first task's project download, import and Javadoc generating instructions.

Description

This task is about handling change money. You may think of a vending machine's control unit providing logic for giving back residual money on purchase completion.

Tasks

Implement all dummy methods in class de.hdm_stuttgart.mi.sd1.task2.ChangeAmount.

ChangeAmount contains extensive self-documentation including usage examples and should be tested using de.hdm_stuttgart.mi.sd1.test.task2.Test_ChangeAmount.

Solution upload

Follow your first task's project export and upload instructions. Upload your current solution using the first task's page within the ILIAS system. If you also worked on the first task your upload will contain both tasks' solutions bundled as one common zip archive.

Use the text field for entering either of:

  • I did work on the current task.

  • I did not work on the current task.

Solution