0% found this document useful (0 votes)
4K views27 pages

IP Project File CYBER CAFE MANAGEMENT

The document describes a hotel management system project. It includes sections on acknowledgements, certificates, synopsis, code, and bibliography. The synopsis provides an overview of the project which is a system for managing computers in a cyber cafe.

Uploaded by

Piyush Gola
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)
4K views27 pages

IP Project File CYBER CAFE MANAGEMENT

The document describes a hotel management system project. It includes sections on acknowledgements, certificates, synopsis, code, and bibliography. The synopsis provides an overview of the project which is a system for managing computers in a cyber cafe.

Uploaded by

Piyush Gola
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/ 27

INFORMATICS

PRACTICES
PROJECT FILE
HOTEL MANAGEMENT
SYSTEM
SESSION 2023-2024

Name: Dev Gola


CONTENT

1. ACKNOWLEDGMENT
2. CERTIFICATE
3. SYNOPSIS
4. CSV FILES
5. CODE
6. OUTPUT
7. BILIOGRAPHY
ACKNOWLEDGEMENT

I have immense gratitude for my Informatics Practices teacher,


Dev Gola, without whose guidance and support, I would not have
been able to complete my project.
I would also like to thank my respected principal Sukhwant Kaur,
for providing such faculty and other facilities without which this
project wouldn’t have been possible.
Last but not the least, I would like to express my gratitude for my
parents, who helped me throughout, and without whom I would
not have been able to complete the project in appropriate time
frame successfully.
CERTIFICATE

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

Mr. Saranjeet Singh


Informatics Practices Teacher

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

3. Billing Maintenance• Add

• 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

Customer_fields = ['cust_id', 'name', 'age', 'email', 'phone', 'Computer


Preferance', 'Avg usage(Hours)']
Customer_database = r'C:\Users\user\Desktop\cybercafe_customers.csv'
Computers_database = r'C:\Users\user\Desktop\Cybercafe computers
info.csv'
choice = '0'

while choice != '10':


print("--------------------------------------")
print(" Welcome to Cyber Cafe Management System")
print("---------------------------------------")
print("1. Add New Customer")
print("2. View Customers")
print("3. Search Customer")
print("4. Update Customer")
print("5. Delete Customer")
print("6. View Computer Availability")
print("7. View Customer Bill")
print("8. Add Computer")
print("9. View Computers")
print("10. Quit")
choice = input("Enter your choice: ")

if choice == '1':
Customer_data = []

for field in Customer_fields:


value = input("Enter " + field + ": ")
Customer_data.append(value)

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

elif choice == '2':


df = pd.read_csv(Customer_database)
print(df)
input("Press any key to continue")

elif choice == '3':


search_by = input("Do you want to search by (1) Customer ID or
(2) Customer Name? Enter 1 or 2: ")

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

elif choice == '4':


print("--- Update Customer ---")
cust_id = int(input("Enter Customer ID to update: "))
df_customers = pd.read_csv(Customer_database)
s = df_customers.loc[df_customers['cust_id'] ==
cust_id].index.values
if len(s) > 0:
existing_customer_data = df_customers.iloc[s[0]]
updated_data = {
'name': input(f"Enter name
({existing_customer_data['name']}): ") or
existing_customer_data['name'],
'age': int(input(f"Enter age ({existing_customer_data['age']}):
") or existing_customer_data['age']),
'email': input(f"Enter email
({existing_customer_data['email']}): ") or
existing_customer_data['email'],
'phone': int(input(f"Enter phone
({existing_customer_data['phone']}): ") or
existing_customer_data['phone']),
'Computer Preferance': input(f"Enter Computer Preferance
({existing_customer_data['Computer Preferance']}): ") or
existing_customer_data['Computer Preferance'],
'Avg usage(Hours)': int(input(f"Enter Avg usage (Hours)
({existing_customer_data['Avg usage(Hours)']}): ") or
existing_customer_data['Avg usage(Hours)']),
}
updated_customer_data = {
'cust_id': cust_id,
'name': updated_data['name'],
'age': updated_data['age'],
'email': updated_data['email'],
'phone': updated_data['phone'],
'Computer Preferance': updated_data['Computer Preferance'],
'Avg usage(Hours)': updated_data['Avg usage(Hours)'],
}
df_customers.iloc[s[0]] = updated_customer_data
df_customers[['age', 'phone', 'Avg usage(Hours)']] =
df_customers[['age', 'phone', 'Avg usage(Hours)']].astype(int) #
Explicitly cast columns to int
df_customers.to_csv(Customer_database, index=False)
print("Data saved successfully")
else:
print("Customer Id. not found in our database")

elif choice == '5':


cust_id = int(input("Enter Customer ID to delete: "))
df = pd.read_csv(Customer_database)
s = df.loc[df['cust_id'] == cust_id].index.values
if len(s) > 0:
df.drop(df.index[s[0]], inplace=True)
df.to_csv(Customer_database, index=False)
print("Customer deleted successfully")
else:
print("Customer Id. not found in our database")
input("Press any key to continue")

elif choice == '6':


print("--- View Computer Availability ---")
df_computers = pd.read_csv(Computers_database)
print(df_computers[['Computers(Type)', 'Availability']])
input("Press any key to continue")

elif choice == '7':


print("--- View Customer Bill ---")
cust_id = int(input("Enter Customer ID to view the bill: "))
customer_df = pd.read_csv(Customer_database)

customer_row = customer_df[customer_df['cust_id'] == cust_id]

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]

bill_amount = avg_usage * price_per_hour


print(f"Bill for Customer {cust_id}: in Rupee {bill_amount}")
else:
print("Customer ID not found in our database")

elif choice == '8':


print("--- Add Computer ---")
computer_data = {
'Computers(Type)': input("Enter Computer Type: "),
'Price(Per Hour)': eval(input("Enter Price Per Hour: ")),
'Internet Speed': input("Enter Internet Speed: "),
'Availability': int(input("Enter Availability: "))
}

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

elif choice == '9':


print("--- View Computers ---")
df_computers = pd.read_csv(Computers_database)
print(df_computers)
input("Press any key to continue")

elif choice == '10':


break

else:
print("Wrong Choice Entered")

print("-------------------------------")
print(" Thank you for using our system")
print("-------------------------------")
OUTPUT
BIBLIOGRAPHY

 Informatics Practices by Sumita Arora for Class XII


 Informatics Practices For Class XII by Preeti Arora
 https://www.google.com/
 https://chat.openai.com/

You might also like