CSC Project Final - 1st Jan
CSC Project Final - 1st Jan
INVESTIGATORY PROJECT
Computer Science
2024 -2025
CYBER CAFE
Mrs. Pourselvi.R
Computer Science Teacher External Examiner
Last but not the least I would like to thank my classmates who
have helped me a lot in the completion of my project.
CONTENT:
Project Description
Source code
Screen Outputs
Conclusion
Python is known as a glue language, able to work very well with many other
languages with ease of access.
It uses dynamic name resolution (late binding), which binds method and
variable names during program execution.
Its design offers some support for functional programming in the Lisp
tradition. It has filter, map and reduce functions; list
comprehensions, dictionaries, sets, and generator expressions.
The standard library has two modules (iter tools and func tools) that
implement functional tools borrowed from Haskell and Standard ML.
PROJECT ON CYBER CAFE
INTRODUCTION:
A cyber cafe is a public place where individuals can access the internet and use
computers for various activities, typically for a fee. These establishments are
equipped with computers, high-speed internet connections, and often offer
additional services like printing, scanning, gaming, and sometimes even snacks or
beverages. Cyber cafes provide an affordable option for people who do not have
personal computers or reliable internet access at home, or for those who need to
work, study, or communicate online while traveling.
Cyber cafes are particularly popular in areas where internet access is limited or
expensive, and they have historically been a vital resource for accessing email,
social media, and other online services. In addition, some cyber cafes cater to
specific interests, such as gaming, where people can play multiplayer video
games together, or business services like document printing and faxing.
As technology has evolved and more people have personal access to the internet
through smartphones and home computers, the demand for traditional cyber cafes
has declined in many regions. However, they still remain a crucial service in some
parts of the world.
Provide Internet Access: The primary objective is to offer reliable and affordable
internet access to people who may not have access to the internet at home, such
as students, travelers, or individuals in underserved areas.
Provide Gaming & Entertainment: Many cyber cafes cater to gamers by providing
high-end computers and internet connections for online multiplayer games, as
well as offering entertainment options like music streaming, video watching,
or other leisure activities.
Support Business Services: Cyber cafes often provide services for business
people, such as printing, scanning, faxing, and photocopying. This makes it a
valuable resource for freelancers, entrepreneurs, and remote workers.
Create a Social Hub: Cyber cafes can also serve as community spaces where
people meet, share experiences, and engage in collaborative work or gaming,
creating a sense of social connection among individuals from different
backgrounds.
ADVANTAGES:
Cyber cafes offer several advantages, making them a useful service for a variety
of individuals and communities. Some of the key advantages include:
Convenient Location: Cyber cafes are often located in easily accessible areas
such as busy marketplaces, shopping centers, or near transportation hubs,
making them a convenient spot for people to use the internet when traveling or in
need of temporary access.
High-Speed Internet: Most cyber cafes offer fast and reliable internet connections,
which can be beneficial for users who need to complete tasks that require higher
bandwidth, such as video conferencing, streaming, or downloading files.
Support for Travelers: Cyber cafes offer a vital service to travelers who may
need to check emails, book accommodations, or find local information. It's an
easy solution for accessing the internet without relying on mobile data or hotel
Wi-Fi.
Using public computers in a cyber cafe can expose users to security risks, such
as malware, viruses, and spyware. Personal information, such as login
credentials and financial details, could be at risk if the computers are not
adequately protected.
Users may not be able to trust the privacy of their online activities, especially when
using shared or public systems that may have monitoring software or keystroke
loggers installed.
Cost:
Although cyber cafes are generally affordable, the costs can add up over time,
especially for extended periods of use. For individuals who require frequent or
prolonged access to the internet, it may be more cost-effective to invest in
personal internet access or home computing resources.
Lack of Technical Support:
While cyber cafes provide access to technology, they typically do not offer
extensive technical support. If a user encounters issues with a computer or needs
help with software, they may not receive the assistance needed to resolve the
problem quickly.
The quality of service can vary significantly from one cyber cafe to another,
depending on the equipment, internet speed, and staff knowledge. Some cafes
may have outdated hardware or slow internet, which can negatively impact the
user experience.
In conclusion, while cyber cafes are useful in many situations, they come with
certain risks and limitations, particularly related to security, privacy, and
convenience. Users need to exercise caution and be aware of these drawbacks
when utilizing public computing facilities.
OBJECTIVES OF THE PROJECT
The objective of this project is to let the students apply the programming
knowledge into a real- world situation/problem and exposed the students how
programming skills helps in developing a good software.
I. Windows OS
II. Python
INSTALATION PROCEDURE
Pre-Requisites :-
1. You have to have the following software for the successful running of this
software; which are
II) MySQL (Only for the First time), it is downloadable from 'www.mysql.org'.
Installation :-
1. There will be two folders namely 'Python Files' and 'EXE files'.
2. The folder 'Python Files' will contain the source code of the software in
python language. If you are running the software by the 3rd step mentioned
below you have to pre install the following modules :-
I) mysql.connector
II) matplotlib.
3. Open the files in any python editors and run it to start and work on the
software.
4. The folder 'EXE files' will contain two files namely 'main.exe' and
'Tables_in_mysql.exe'.
6. Then run the file 'main.exe' to start and work on the software.
CAUTION :-
1. If you are running the software through running the python files or by
running the .exe files; first run the file named 'Tables_in_mysql'.
SOURCE CODE
import datetime
import mysql.connector as mys
def create():
def create_database():
"""Create a database and a table for storing receipts if not exists."""
conn = mys.connect(host='localhost',user='srijank',password='Failnumber009',
lkjlljlkljjjjdatabase='srijan', auth_plugin = 'mysql_native_password')
cursor = conn.cursor()
cursor.execute('CREATE TABLE IF NOT EXISTS cafe1('
'c_id INTEGER(3), '
'customer_name VARCHAR(20), '
'start_time DATETIME, '
'end_time DATETIME, '
'time_spent REAL, '
'hourly_rate REAL, '
'total_cost FLOAT(5,2))')
# Save to database
save_to_database(c_id ,customer_name, start_time.strftime('%H:%M:%S'),
end_time.strftime('%H:%M:%S'), hours_spent, hourly_rate, total_cost)
# Format receipt
receipt = f"""
================================
CYBER CAFE RECEIPT
================================
Customer Name: {customer_name}
Start Time: {start_time.strftime('%H:%M:%S')}
End Time: {end_time.strftime('%H:%M:%S')}
Time Spent: {hours_spent:.2f} hours
Hourly Rate: Rs.{hourly_rate:.2f}
--------------------------------
Total Cost: Rs.{total_cost:.2f}
================================
Thank you for using our services!
"""
return receipt
2.Website: https://www.w3resource.com
3.Website: https://www.wikipedia.org/