Skip to content

Sheffield | 26-ITP-jan | Richard Frimpong | Sprint 3 | Alarm Clock#1064

Open
Richiealx wants to merge 3 commits intoCodeYourFuture:mainfrom
Richiealx:coursework/sprint-3-alarm-clock
Open

Sheffield | 26-ITP-jan | Richard Frimpong | Sprint 3 | Alarm Clock#1064
Richiealx wants to merge 3 commits intoCodeYourFuture:mainfrom
Richiealx:coursework/sprint-3-alarm-clock

Conversation

@Richiealx
Copy link

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

This PR implements the Sprint 3 Alarm Clock app.

The application starts with the heading showing Time Remaining: 00:00 and no alarm sound playing.

When the user enters a number of seconds and clicks the "Set Alarm" button, the heading updates immediately in mm:ss format. The countdown then decreases by one second every 1000 ms.

When the timer reaches 00:00, the background colour changes and the alarm sound starts playing continuously. Clicking the "Stop Alarm" button stops the alarm sound.

I also added logic to clear any existing timer before starting a new one, reset the background state when a new alarm is set, and format the display consistently.

The app was tested in the browser to confirm:

  • the initial heading shows 00:00
  • the timer formats values correctly
  • the timer counts down every second
  • the background colour changes when the timer reaches zero
  • the alarm sound plays at zero
  • the stop button stops the alarm sound

I also ran the provided tests for the alarm clock task, and all tests passed successfully.

Questions

No questions at this time.

@Richiealx Richiealx added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant