Application Kata "Alarm clock"

Develop an application with which you can be woken up.

Either a wake-up time (time) or a rest period (period until the wake-up time) is entered.

The application constantly displays the current time to the second. However, as soon as a wake-up order has been given by entering a wake-up time or rest time and pressing a start button, it also displays the remaining time until the wake-up time to the second.

When the alarm time is reached, the application plays a music file with the name weckton.wav (or weckton.mp3). The alarm clock is also stopped.

Of course, the alarm clock can also be stopped at any time before the alarm time is reached. The remaining time is then no longer displayed.

Variation #1

The music file is played until the alarm clock is stopped manually.

en_USEnglish