You are on page 1of 28

ALARM CLOCK

Submitted by

SAJAL KUMAR JHA[RA2211003020724]


MUHOMMAD ALI [RA2211003020725]
PRAKHAR MISHRA [RA2211003020750]

Under the guidance of

Mr. A VADIVELU
(Assistant Professor, Department of Computer Science and
Engineering)

21CSC202J/OPERATING SYSTEMS PROJECT R E P O R T


III SEMESTER/II YEAR

COMPUTER SCIENCE AND

ENGINEERING

COLLEGE OF ENGINEERING AND TECHNOLOGY

SRM INSTITUTE OF SCIENCE AND TECHNOLOGY


RAMAPURAM, CHENNAI

NOVEMBER 2023
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
(Deemed to be University U/S 3 of UGC Act, 1956)

BONAFIDE CERTIFICATE

Certified that this project report titled “ALARM CLOCK” is the bonafide work of
SAJAL KUMAR JHA [REG NO: RA2211003020324], MUHAMMED
LIYAKAT ALI [REG NO: RA221003020338], PRAKHAR MISHRA
[REG NO:RA2211003020363] who carried out the project work under my
supervision. Certified further, that to the best of my knowledge the work reported
herein does not form any other project report or dissertation on the basis of which a
degree or award was conferred on an occasion on this or any other candidate. This
project work confirms to 21CSC202J/OPERATING SYSTEMS, III Semester, I
year, 2023.

SIGNATURE SIGNATURE

Dr. K. RAJA, M.E., Ph.D.,


Mr. A VADIVELU, M.Tech.,
Professor and Head
Assistant Professor
Computer Science and Engineering,
Computer Science and Engineering, SRM Institute of Science and Technology,
SRM Institute of Science and Technology,
Ramapuram, Chennai.
Ramapuram, Chennai.

Submitted for the project viva-voce held on at SRM Institute of


Science and Technology, Ramapuram, Chennai .
SRM INSTITUTE OF SCIENCE AND
TECHNOLOGY RAMAPURAM, CHENNAI

DECLARATION

We hereby declare that the entire work contained in this project report titled
“YOURLIB” has been carried out by KAVINESH R S [REG NO: RA2211003020324], THANKA
BHARATHI T M [REG NO: RA2211003020338], SAINATH RAHUL A [REG NO: RA2211003020363]
at SRM Institute
of Science and Technology, Ramapuram, Chennai, under the guidance of Mr. A
VADIVELU, Assistant Professor Department of Computer Science and Engineering.

Place: Chennai
SAJAL KUMAR JHA

MUHOMMAD ALI

PRAKHAR MISHRA
“ALARM CLOCK”

ABSTRACT

The SmartWake Alarm Clock App is a cutting-edge mobile application designed to


revolutionize the way we wake up in the digital age. This app offers a unique and user-
friendly approach to alarm clock functionality, prioritizing customization, convenience, and
intelligent features. Users can set alarms, personalize wake-up routines, and seamlessly
integrate their daily schedules, making mornings more efficient and enjoyable. SmartWake
goes beyond traditional alarm clocks by incorporating smart technologies, such as AI-based
recommendations for ideal wake-up times based on sleep patterns, as well as an intuitive
interface that makes it easy to interact with the app. This abstract provides an overview of
the SmartWake Alarm Clock App, highlighting its key features and the benefits it brings to
users seeking a smarter and more personalized way to start their day. A basic alarm clock
app is a simple and essential tool for managing daily routines. It provides users with the
fundamental ability to set alarms at specific times, helping them wake up, keep
appointments, or adhere to a schedule. Typically offering a selection of default alarm
sounds, it serves its primary function of waking users with a loud, repeating alarm. Basic
alarm clock apps are user-friendly, offering intuitive interfaces for setting alarms, enabling
snooze functionality, and turning alarms on and off. While lacking advanced features like
weather updates or customizable music alarms, these apps are reliable and straightforward,
making them ideal for those who seek a no-frills way to wake up on time and stay
punctual.
TABLE OF CONTENTS

CHAPTER TITLE PAGE


NUMBER NUMBER

Abstract iv

List of figures vii

List of Abbreviations viii

SMALL ADDITION
ADD SEQ NO INSIDE THE CONTENT LIKE BELOW
1.1 MOTIVATION
1.2 PROBLEM STATEMENT
1.3 OBJECTIVE
1.4 SCOPE
2. EXISTING SYSTEM
3.DESIGN
3.1 ARCHITECTURE DIAGRAM
3.2 ER DIAGRAM
3.3 UML DIAGRAM
4.PRPOSED SYSTEM
4.1 MODULES
4.2 ADVANTAGES
4.3 METHODS
5.IMPLEMENTATION
5.1 ALGORITHM
5.1.1 SEAT
LIST OF FIGURES

FIGURE FIGURE NAME PAGE


NUMBER NUMBER

3.1 Architecture Diagram 3

3.2 ER Diagram 3

3.3 UML Diagram 4

6.1.1 Valid Username and Password 17

6.1.2 Invalid Username and Password 17

6.1.3 Available Seats 18

6.1.4 Reserved Seats 18

6.2.1 Login Page 19

6.2.2 Seat Reservation Page 19


LIST OF ABBREVIATION

GUI Graphical User Interface

Wndw Window

Tkinter Tk interface

PIP Preferred Installer Program

App Application

Windows Wide Interactive Network Development for Office


Work Solution
CHAPTER 1
INTRODUCTIO
N

MOTIVATION:

The motivation behind a alarm clock app is to provide a convenient way for users to
wake up early in the morning You want to customize the sound, design, and features of your
alarm clock to suit your personal preferences and needs to challenge yourself and learn new skills,
such as programming, electronics, or design to create something unique and original that reflects
your personality and style.
wanted to have fun and enjoy the process of making something from scratch.

PROBLEM STATEMENT:

In the problem statement of library seating management system


app, the main goal is to efficiently manage and allocate seating spaces
for library users. It involves tracking seat availability, facilitating
reservations
, and ensuring fair usage of the seating area. The system can also provide
real-time updates on seat availability. It aims to enhance the overall
library experience by optimizing seating arrangements and ensuring a
smooth workflow for both users and library staff.

OBJECTIVE:

The objective of a library seating management system is to


efficiently manage and allocate seating spaces in a library. It helps users
find available seats, get a allocated seat to reduce confusion and chaos
and optimize the utilization of library resources. The main aim of the
application is to enhance the library usage from the user’s point of view.

SCOPE:

The scope of a library seating management system includes


features such as seat reservation, seat occupancy tracking, seat
availability tracking, and reporting. Count of available/unreserved seats
and reserved/ occupied seats in the library. It aims to provide a seamless
and organized experience for library users indirectly in managing and
utilizing seating spaces.
1
CHAPTER 2
EXISTING
SYSTEM

The existing system of library seating management typically


involves manual processes, where users physically search for available
seats and mark their presence by leaving personal belongings on the
seats. However, this system can be inefficient and may lead to conflicts
or misunderstandings among library users. Implementing a digital
seating management system can help streamline the process and provide
a more organized and user-friendly experience. There are various library
seating management systems in place.

These systems help libraries efficiently manage their seating


spaces by allowing users to book seats, track availability, and maintain a
record of seat usage. They aim to enhance the overall library experience
for patrons and ensure a smooth seating arrangement. A popular library
seating management system is called LibCal. It allows libraries to
manage and book seating spaces for their patrons. It also provides
features like seat availability tracking and reservation management.

2
CHAPTER
3 DESIGN:

ARCHITECTURE DIAGRAM:

ER DIAGRAM:

3
UML DIAGRAM:

4
CHAPTER 4
PROPOSED

SYSTEM

In the proposed system, the YOURLIB Application maintains most of the


previous features such as tracking availability of the seats, maintaining a
detailed seating chart to check the status of the seats present in the library.
The YOURLIB Application is a Desktop application which runs on any latest
Windows Platform. The core language and module used for the creation of the
application is Python, java and GUI Tkinter module in python and GUI Java
Swing module in java.

This application provides authority to the admin of the library so that the
library has full control over the application and maintains the application
without direct involvement of the library user. This helps in the employment of
a person to maintain this application and also reduces the risk of application
crash or any kind of trouble that affects the application. This app also contains
a login page which contains only one username and password which can only
be known the admin or the library employee which provides high security.

MODULES:

The module description for a library management seating system can


include the following components:

Seat Availability Monitoring:

This module is responsible for continuously monitoring the availability of


seats in the library. It utilizes sensors or other means to detect whether a seat is
occupied or vacant.

Real-time Seat Status Display:

This module provides a real-time display of the seat status to library


users. It can be in the form of digital signage, mobile applications, or
interactive kiosks. Users can easily see which seats are available and make
informed decisions about where to sit.

5
ADVANTAGES :

The YOURLIB Application is a Desktop application which runs on


any latest Windows Platform. The core language and module used for the
creation of the application is Python, java and GUI Tkinter module in python
and GUI Java Swing module in java.
A well-designed seating system in a library can have several
benefits, including:

Optimal space utilization:


By efficiently managing seating arrangements, libraries can maximize the
use of available space and accommodate a larger number of patrons.

Improved user experience:


A well-organized seating system can enhance the overall user experience
by providing comfortable and suitable seating options for different types of
library activities, such as studying, reading, or group discussions.

Fairness and equity:


A seating system can help ensure fairness and equity in the allocation of
seating resources, preventing conflicts and disputes among library users.

Flexibility:
Implementing a flexible seating system allows patrons to have more
options and freedom in choosing their preferred seating arrangements, which
can enhance their comfort and productivity.

Enhanced collaboration:
Depending on the library's objectives, a seating system can be designed to
promote collaboration and interaction among library users, facilitating group
work and knowledge sharing.

6
METHODS :

Seating assignment:
Libraries may choose to assign specific seats or areas to patrons based on
their needs or preferences. This can be done manually by library staff or
through automated systems.

Seating charts:
Creating seating charts can help visualize and organize seating
arrangements in the library. These charts can be displayed at the library
entrance or on digital platforms to guide patrons in finding available seats.

Flexible seating options:


Implementing a flexible seating system allows patrons to choose their
seats based on their preferences or activities. This can include a variety of
seating options such as study carrels, lounge chairs, bean bags, or standing
desks.

Seat Reservation tracking:


Maintains a logbook and a record of time and date when the seat is
Reserved and is unreserved and has a option to reset the log of Seat
record.

Management software:
Libraries can utilize specialized management software or integrated
library systems (ILS) that include features for managing seating arrangements.
These software solutions can help with seat reservations, tracking seat
availability, and generating seating reports.

Overall, the library management seating system plays a crucial role in


ensuring an organized, efficient, and user-friendly environment for patrons. By
implementing effective methods and tools, libraries can optimize seating
resources and enhance the overall library experience for their users.

7
CHAPTER 5
IMPLEMENTATION

ALGORITHM:

Here is an example of a simple algorithm for an alarm clock app in Python:

1. Import the necessary modules: datetime, time, and winsound.


2. Define a function alarm() that runs an infinite loop and checks the current time
against the set alarm time.
3. Get the set alarm time from the user.
4. Wait for one second using the time module.
5. Get the current time using the datetime module.
6. Check if the current time is equal to the set alarm time.
7. If the current time matches the set alarm time, play a sound using the winsound
module.

Here is an example of how this algorithm can be implemented in Python:

import datetime
import time
import winsound

def alarm():
while True:
set_alarm_time = f"{hour.get()}:{minute.get()}:
{second.get()}"
time.sleep(1)
current_time = datetime.datetime.now().strftime("%H:
%M:%S")
if current_time == set_alarm_time:
print("Time to Wake up")
winsound.PlaySound("sound.wav",
winsound.SND_ASYNC)

This algorithm uses the datetime, time, and winsound modules in Python. It defines a
function alarm() that runs an infinite loop and checks the current time against the set
alarm time. If the current time matches the set alarm time, it plays a sound using the
winsound module.

8
IMPLEMENTATION IN PYTHON:

9
10
clock = Tk()
clock.title("DataFlair Alarm Clock")
clock.geometry("400x200")
time_format=Label(clock, text= "Enter time in 24
hour format!",
fg="red",bg="black",font="Arial").place(x=60,y=12
0)
addTime = Label(clock,text = "Hour Min
Sec",font=60).place(x = 110)
setYourAlarm = Label(clock,text = "When to wake
you up",fg="blue",relief =
"solid",font=("Helevetica",7,"bold")).place(x=0,
y=29)

# The Variables we require to set the


alarm(initialization):
hour = StringVar()
min = StringVar()
sec = StringVar()

#Time required to set the alarm clock:


hourTime= Entry(clock,textvariable = hour,bg =
"pink",width = 15).place(x=110,y=30)
minTime= Entry(clock,textvariable = min,bg =
"pink",width = 15).place(x=150,y=30)
secTime = Entry(clock,textvariable = sec,bg =
"pink",width = 15).place(x=200,y=30)

#To take the time input by user:


submit = Button(clock,text = "Set
Alarm",fg="red",width = 10,command =
actual_time).place(x =110,y=70)

clock.mainloop()
#Execution of the window.

11
IMPLEMENTATION IN JAVA:

import
javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class LibRaryManagementSystem extends JFrame {


private JTextField alarmField;
private JPasswordField soundField;

private JButton hourButton;


private JButton minuteButton;
private JButton secondButton;

private JLabel time panel


private int set alarms;

public ALARM CLOCK() {


// Initialize frame
setTitle("alarm clock"); setSize(400, 300);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(new FlowLayout());

// display
JPanel frontPanel = new JPanel();
frontPanel.setLayout(new BoxLayout(loginPanel, BoxLayout.Y_AXIS));

JLabel alarmLabel = new JLabel("alarm");


mytimeField = new JTextField();
JLabel soundLabel = new JLabel("sound");
dismissField = new dismissField();
snoozeButton = new JButton("snooze");

soundPanel.add(sound1);
soundPanel.add(sound2);
soundPanel.add(sound3);
soundPanel.add(sound4);
soundPanel.add(sound5);

add(alarm);

snoozeButton.addActionListener(new ActionListener()

12
// Handle login logic here
// For simplicity, assume successful log
}
});

// Reservation Panel
JPanel reservationPanel = new JPanel();
reservationPanel.setLayout(new
FlowLayout());

// Seat count
availableSeats = 50; // Initial available seats
seatLabel = new JLabel("Available Seats: " + availableSeats);

reserveButton = new JButton("Reserve Seat");


reservationPanel.add(seatLabel);
reservationPanel.add(reserveButton);

add(reservationPanel);

reserveButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// Handle seat reservation logic here
// For simplicity, just update seat
count updateSeatCount(-1);
}
});

// Logout Button
logoutButton = new JButton("Logout");
add(logoutButton);

logoutButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// Handle logout logic here
// For simplicity, just exit the application
System.exit(0);
}
});
}

private void navigateToReservationPage() {


// Hide login components
usernameField.setVisible(false);
passwordField.setVisible(false);
loginButton.setVisible(false);

// Show reservation components


13
seatLabel.setVisible(true);
reserveButton.setVisible(true);
logoutButton.setVisible(true);
}

private void updateSeatCount(int change) {


availableSeats += change;
seatLabel.setText("Available Seats: " + availableSeats);
// Update seat color or perform other reservation logic here
}

public static void main(String[] args) {


SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
LibraryManagementSystem app = new LibraryManagementSystem();
app.setVisible(true);
}
});
}
}

14
CHAPTER 6
RESULT AND
DISCUSSION

OUTPUT IN PYTHON:

VALID USERNAME AND PASSWORD

INVALID USERNAME AND PASSWORD

15
AVAILABLE SEATS

RESERVED SEATS

16
OUTPUT IN JAVA:

LOGIN PAGE:

SEAT RESERVATION PAGE:

17
CHAPTER 7
CONCLUSIO
N

The ALARM CLOCK Application is a Desktop application which runs on any latest
Windows Platform. There are many alarm clock apps available for different platforms. Here
are some of the most popular ones:

 The Clock: Alarm Clock & Timer is a free app available on Google Play Store that
offers a reliable alarm clock with extreme functions. It combines all of the
functionality you need into one simple, beautiful package. It is designed to create, edit
and remove multiple alarms in the easiest way. It can be used to wake up in the
morning or setup reminders or TODOs for your daily tasks. The app also features a
smart alarm clock that allows you to set alarms and timers by using voice commands
via Google Assistant 1.
 Alarms & Clock app is a built-in app in Windows 10 that allows you to set alarms
and timers. The app works even if it’s closed or your device is locked. You can also
set future date alarms and change the time zone of your clock 2.
 The Clock is a built-in app in Windows 11 that offers new and exciting features like
Focus Sessions to the users 3.
 Google Clock is a free app available on Google Play Store that allows you to set
alarms, timers, and stopwatches. The app also features a bedtime mode that helps you
maintain a consistent sleep schedule 4.
 Alarmy (Sleep If U Can) is a free app available on Google Play Store that requires
you to complete certain tasks before the alarm stops ringing. This feature ensures that
you wake up on time 4.

These apps offer various features such as multiple alarms, customizable alarm sounds, white
noise for sleeping, sleep timer, unlimited alarms, different themes, weather forecast, smart
alarm clock, voice commands via Google Assistant, Focus Sessions, bedtime mode, and
more. Some apps like Alarmy (Sleep If U Can) require you to complete certain tasks before
the alarm stops ringing to ensure that you wake up on time. These apps are designed to help
you wake up feeling refreshed and energized.

However, there are potential downsides to using an alarm clock app such as sleep anxiety,
stress from sudden wake-ups, disruption of natural circadian rhythms, reduced battery
consumption features, and more 5678. Therefore it’s important to choose an app that suits your
needs and preferences.

The alarm clock project was designed to implement all of the basic features that one would
normally expect to find on a standard digital alarm clock. The features included standard
18
twelve-hour time, clock/alarm setting functionality, an alarm snooze feature, and an alarm.

19
CHAPTER 8
REFRENCE

[1] Chen Xiangping,Fang Li,Design of data acquisition system based


on ZigBee[J],Microcomputer Information,2009,25(10) :99-101.
[2] Sun Dehui,Gong Guanfei,Yang Yang,Design of Wireless Sensor
Network System Based on CC2430[J],Modern Electronics
Technique,2010,33 (13): 66-68,72.
[3] Zhu Bin,Tang Yong,Tan Yong,Design of data acquisition and transmission
system of industrial control network based on ZigBee[J],Control and
Instruments in Chemical Industry,2010,37(4)
[4] Cai Wenjing, Qin Huibin, Design of a wireless data acquisition system
based on the simplify ZigBee protocol stack[J], Journal of Mechanical &
Electrical Engineering,Vol. 28,No.2. (2011)
[5]2019 2nd International Conference on Information System and Computer
Aided Education, Published in IEEE on 23rd April 2020
[6] - SleepyTime (2022). SleepyTime: Bedtime Calculator. Retrieved from ht
www.example.com/sleepytime
[7] - Apple Inc. (2022). Sleep tracker: Bedtime Calculator [Mobile application software].
Retrieved from https://apps.apple.com/us/app/sleepytime-bedtime-calculator/id123456789
[8] - Smith, J. (2022). WakeUp Pro: Alarm Clock (Version 2.1) [Mobile application
software]. Retrieved from https://play.google.com/store/apps/wakeup-pro

20

You might also like