IP Project File CYBER CAFE MANAGEMENT
IP Project File CYBER CAFE MANAGEMENT
PRACTICES
PROJECT FILE
HOTEL MANAGEMENT
SYSTEM
SESSION 2023-2024
1. ACKNOWLEDGMENT
2. CERTIFICATE
3. SYNOPSIS
4. CSV FILES
5. CODE
6. OUTPUT
7. BILIOGRAPHY
ACKNOWLEDGEMENT
This is to certify that this project has been made by Dev Gola. It
is part of class XII Board Examinations and to be submitted to the
Central Board of Secondary Education.
It has been performed under the supervision and guidance of
Saranjeet Singh ,Informatics Practices Teacher, Guru Harkrishan
Public School Vasant Vihar, New Delhi
SYNOPSIS
Description
Cyber Café Management is a complete package developed for management of systems in a
cyber café. This project is intended to be used in a Cyber Café. All cyber cafes have some basic
needs likeable to control the systems that are being rented to the customers and are charged
on timely basis. A Cyber café normally has some number of PC’s which the customers will for certain amount
of time. Now days it may also require to save some details of the customers for security
reasons. When a customer enters a cyber café he has to be allotted a PC and the start time is
noted. At any time the cyber administrator should be able to see the status of any PC , When
the customer wants to do some other activities like taking a print out or scan a copy etc. It
should be recorded. And finally all the details will be available to the Cyber administrator. And
he can submit on the form to generate the bill. There should be displays of all the transactions
taking place in the café.
Team members
• Surya Seth
Software required
• OS Windows
• Python (v.3.11)
Bibliography
• https://studentprojects.in/
Contents
1. Connection Module Maintenance
2. User Creation and Management
• Add
• Update
• Delete
• View
• Search
• Update
• Delete
• View
• Search
4Client Requests .Add
• View
• Delete
• Search
5. Feedback
6. Exit
CSV FILES
Two CSV files have been created and used one for customers info
and one for computers info in the cafe.
CODING
import pandas as pd
if choice == '1':
Customer_data = []
cust_id = int(Customer_data[0])
customer_df = pd.read_csv(Customer_database)
s = customer_df.loc[customer_df['cust_id'] == cust_id].index.values
if len(s) == 0:
new_customer_data = {'cust_id': Customer_data[0], 'name':
Customer_data[1], 'age': Customer_data[2],
'email': Customer_data[3], 'phone':
Customer_data[4],
'Computer Preferance': Customer_data[5], 'Avg
usage(Hours)': Customer_data[6]}
customer_df_updated = pd.concat([customer_df,
pd.DataFrame([new_customer_data])], ignore_index=True)
customer_df_updated.to_csv(Customer_database, index=False)
print("Data saved successfully")
else:
print("Data NOT saved successfully. Customer Id already
exists.")
input("Press any key to continue")
if search_by == '1':
cust_id = int(input("Enter Customer ID to search: "))
df = pd.read_csv(Customer_database)
s = df.loc[df['cust_id'] == cust_id]
if not s.empty:
print("----- Customer Found -----")
print(s)
else:
print("Customer ID not found in our database")
elif search_by == '2':
cust_name = input("Enter Customer Name to search: ")
df = pd.read_csv(Customer_database)
s = df.loc[df['name'] == cust_name]
if not s.empty:
print("----- Customer Found -----")
print(s)
else:
print("Customer Name not found in our database")
else:
print("Invalid choice. Please enter 1 or 2.")
input("Press any key to continue")
if not customer_row.empty:
computer_preference = customer_row['Computer
Preferance'].values[0]
avg_usage = customer_row['Avg usage(Hours)'].values[0]
df_computers = pd.read_csv(Computers_database)
computer_row = df_computers[df_computers['Computers(Type)']
== computer_preference]
price_per_hour = computer_row['Price(Per Hour)'].values[0]
df_computers = pd.read_csv(Computers_database)
df_computers_updated = pd.concat([df_computers,
pd.DataFrame([computer_data])], ignore_index=True)
df_computers_updated.to_csv(Computers_database, index=False)
print("Computer added successfully")
input("Press any key to continue")
else:
print("Wrong Choice Entered")
print("-------------------------------")
print(" Thank you for using our system")
print("-------------------------------")
OUTPUT
BIBLIOGRAPHY