The Alarm Clock Program is a simple Python application that allows users to set an alarm by entering the desired time in the format (HH:MM:SS AM/PM). When the set time is reached, the program triggers an alarm sound using the 'pygame' library and displays a wake-up message.
-
Time Input:
- Users can set an alarm by entering the desired time in a 12-hour format (HH:MM:SS AM/PM).
-
Validation:
- The program validates the format and components of the entered alarm time, providing feedback on any errors.
-
Alarm Sound:
- Utilizes the 'pygame' library to play an alarm sound when the set time is reached.
-
Wake-Up Message:
- Displays a wake-up message when the alarm is triggered.
-
Run the Program:
- Execute the program and follow the on-screen prompts.
-
Set Alarm:
- Enter the desired alarm time in the format (HH:MM:SS AM/PM).
-
Validation:
- The program validates the entered time, providing feedback on any errors.
-
Alarm Trigger:
- Once the set time is reached, an alarm sound is played, and a wake-up message is displayed.
cd AlarmClock
python alarm_clock.py
Enter the time of the alarm to be set in 12-hour format (HH:MM:SS AM/PM): 08:30:00 AM
Setting alarm for 08:30:00 AM...
Wake Up!!