0% found this document useful (0 votes)
23 views16 pages

CSC Project Final - 1st Jan

The document is an investigatory project titled 'Cyber Café' by student Srijan Karmakar from Chennai Public School for the academic year 2023-2024. It covers the objectives, advantages, and disadvantages of cyber cafes, along with hardware and software requirements, installation procedures, and source code for a Python-based application managing cyber cafe operations. The project aims to demonstrate programming skills and provide insights into the functioning of a cyber cafe as a community resource.

Uploaded by

stealthninjax7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views16 pages

CSC Project Final - 1st Jan

The document is an investigatory project titled 'Cyber Café' by student Srijan Karmakar from Chennai Public School for the academic year 2023-2024. It covers the objectives, advantages, and disadvantages of cyber cafes, along with hardware and software requirements, installation procedures, and source code for a Python-based application managing cyber cafe operations. The project aims to demonstrate programming skills and provide insights into the functioning of a cyber cafe as a community resource.

Uploaded by

stealthninjax7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

CHENNAI PUBLIC SCHOOL

INVESTIGATORY PROJECT
Computer Science
2024 -2025
CYBER CAFE

STUDENT NAME: Srijan Karmakar


CLASS: XII-B
ROLL NUMBER: 20638719
CERTIFICATE

This is to certify that, Srijan Karmakar student of Class XII B,


Chennai Public School, Anna Nagar, has completed the project
titled Cyber Café during the academic year 2023-2024 towards
partial fulfillment of credit for the AISSCE Practical Evaluation,
under my supervision.

Mrs. Pourselvi.R
Computer Science Teacher External Examiner

Mrs. Sukanya M Ravi


Principal School Seal
ACKNOWLEDGEMENT

In the accomplishment of this project successfully, many


people have best owned upon me their blessings and the heart
pledged support. This time, I am utilizing to thank all the
people who have been concerned with this project.
Primarily I would thank almighty for being able to complete
this project with success.

Then I would like to thank the Management, my Principal


Ms.Sukanya and my Computer Science teacher Mrs.Pourselvi,
whose valuable guidance has been the one that helped me
patch this project and make it full proof success. Her
suggestions and instructions served as the major contribution
towards the completion of the project.

Then I would like to thank my parents and friends who have


helped me with their valuable suggestions and guidance has
been very helpful in various phases of the completion of the
project.

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:

 About Python Language

 Project Description

 Hardware & Software Requirements

 Python Packages & Modules used in the project

 SQL Tables used in this project

 Source code

 Screen Outputs

 Conclusion

 Bibliography / References made


About python language

 Python is a high-level, general-purpose programming language. Its design


philosophy emphasizes code readability with the use of significant
indentation.

 Python is dynamically typed and collected. It supports multiple programming


paradigms ,including structured (particularly procedural), object-oriented and
functional programming. It is often described as a "batteries included"
language due to its comprehensive standard library.

 Python is a multi-paradigm programming language. Object-oriented


programming and structured programming are fully supported, and many of
their features support functional programming and aspect oriented
programming (including metaprogramming and metaobjects).

 Many other paradigms are supported via extensions, including design by


contract and logic programming .

 Python is known as a glue language, able to work very well with many other
languages with ease of access.

 Python uses dynamic typing and a combination of reference counting and a


cycle-detecting garbage collector for memory management.

 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.

The objective of a Cyber Cafe project can be outlined as follows:

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.

Offer Computer Services: Cyber cafes aim to provide a variety of computing


services, including access to word processing software, spreadsheets, and other
tools, allowing customers to complete work, study, or other tasks.

Promote Digital Literacy: By providing access to modern computers and the


internet, the cyber cafe helps customers improve their digital literacy and gain
familiarity with online tools, which is essential in the increasingly digital world.

Facilitate Communication: The cyber cafe provides a space for users to


communicate via email, social media, video calls, or messaging services,
helping bridge the communication gap, especially for people who live far from
family or work in remote 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.

Generate Revenue: A key objective of the cyber cafe project is to generate a


steady stream of income by charging customers for internet access, computer
usage, printing, gaming, and other services.

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.

By achieving these objectives, a cyber cafe serves as both a service-oriented


business and a valuable community resource.

ADVANTAGES:

Cyber cafes offer several advantages, making them a useful service for a variety
of individuals and communities. Some of the key advantages include:

Affordable Internet Access: Cyber cafes provide an affordable option for


individuals who don't have personal computers or internet access at home,
especially in areas with limited internet infrastructure. This makes it accessible to
people from various socioeconomic backgrounds.

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.

In summary, cyber cafes provide an essential service that enhances access to


technology, communication, and entertainment while supporting individuals' work,
education, and social interaction.
DISADVANTAGE:

Security and Privacy Risks:

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.

Unsuitable for Sensitive Tasks:

For tasks involving sensitive or confidential information, such as online banking or


handling personal documents, cyber cafes are not ideal due to the potential
security and privacy concerns. Using public computers for these activities
increases the risk of data breaches or unauthorized access.
Inconsistent Service Quality:

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.

 Write programs utilizing modern software tools.

 Apply object-oriented programming principles effectively when developing small


to medium sized projects.

 Write effective procedural code to solve small to medium sized problems.

 Students will demonstrate a breadth of knowledge in computer science, as


exemplified in the areas of systems, theory and software development.

 Students will demonstrate ability to conduct a research or applied Computer


Science project, requiring writing and presentation skills which exemplify
scholarly style in computer science.

HARDWARE AND SOFTWARE REQUIREMENTS


I.OPERATING SYSTEM : WINDOWS 7 AND ABOVE

II. PROCESSOR : PENTIUM(ANY) OR AMD


ATHALON(3800+- 4200+ DUAL CORE)

III. MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM 0R


MSI K9MM-V VIA K8M800+8237R
PLUS CHIPSET FOR AMD
ATHALON
IV. RAM : 512MB+
V. Hard disk : SATA 40 GB OR ABOVE
VI. CD/DVD r/w multi drive combo : (If back up required)
VII. FLOPPY DRIVE 1.44 MB : (If Backup required)
VIII. MONITOR : 14.1 or 15 -17 inch
IX. Key board and mouse
X. Printer : (if print is required – [Hard copy])
SOFTWARE REQUIREMENTS:

I. Windows OS
II. Python

INSTALATION PROCEDURE

CYBER CAFÉ INSTALLATION:-

Pre-Requisites :-

1. You have to have the following software for the successful running of this
software; which are

I) Python (Only for the First time), it is downloadable from 'www.python.org'.

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'.

5. First run the 'Tables_in_mysql.exe' to create the tables in MySQL.

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'.

2. The .exe file will take a lot of time; so be PATIENT.

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))')

#cursor.execute('CREATE TABLE IF NOT EXISTS receipts(id


INTEGER(3),customer_name varchar(20),start_time TEXT, end_time TEXT ,
time_spent REAL, hourly_rate REAL, total_cost INTEGER')
conn.commit()
conn.close()

def save_to_database(c_id , customer_name, start_time, end_time, time_spent,


hourly_rate, total_cost):
"""Save receipt details to the database."""
conn =
mys.connect(host='localhost',user='srijank',password='Failnumber009',database=
'srijan',auth_plugin = 'mysql_native_password')
cursor = conn.cursor()
cursor.execute('INSERT INTO cafe1(c_id,customer_name, start_time,
end_time, time_spent, hourly_rate, total_cost) VALUES(c_id , customer_name,
start_time, end_time, time_spent, hourly_rate, total_cost)')
conn.commit()
conn.close()

def generate_receipt(customer_name, start_time,end_time, hourly_rate):


"""
Generate a cyber cafe receipt.

:param customer_name: Name of the customer


:param start_time: Start time (datetime object)
:param hourly_rate: Hourly rate charged
:return: Formatted receipt string
"""
# Calculate time spent
time_spent = end_time - start_time
print(time_spent)
hours_spent = time_spent.total_seconds() / 3600
total_cost = round(hours_spent * hourly_rate,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

c_id = int(input('Enter customer id:'))


customer_name = input("Enter customer name: ")
start_time_str = input("Enter start time (HH:MM:SS): ")
end_time_str= input("Enter end time (HH:MM:SS): ")
hourly_rate = float(input("Enter hourly rate: "))

# Convert input string to datetime object


start_time = datetime.datetime.strptime(start_time_str, '%H:%M:%S')
end_time = datetime.datetime.strptime(end_time_str, '%H:%M:%S')
# Generate and print receipt
create_database()
receipt = generate_receipt(customer_name, start_time,end_time, hourly_rate)
print(receipt)
create()
OUTPUTS:
BIBLIOGRAPHY
1.Computer science With Python - Class XII - Preeti Arora

2.Website: https://www.w3resource.com

3.Website: https://www.wikipedia.org/

You might also like