attiny45 programming problem.

This is a simple homework project for the OP. No other tasks are to be performed as far as we know. We should keep the sketch as simple as possible. Until the OP says otherwise, I am assuming the alarm will be cancelled by switching off the power.