0% found this document useful (0 votes)
1 views15 pages

Project 22a

The document presents a project report on a Gas Booking System developed as part of an Informatics Practices course. It includes an abstract outlining the system's functionalities, system requirements, code snippets for implementation, and output screens. The project aims to provide a user-friendly interface for managing gas bookings, utilizing tools like Python, CSV for data storage, and Matplotlib for data visualization.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views15 pages

Project 22a

The document presents a project report on a Gas Booking System developed as part of an Informatics Practices course. It includes an abstract outlining the system's functionalities, system requirements, code snippets for implementation, and output screens. The project aims to provide a user-friendly interface for managing gas bookings, utilizing tools like Python, CSV for data storage, and Matplotlib for data visualization.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

A PROJECT REPORT ON

GAS BOOKING SYSTEM


2024 EXAMINATION
AS part of the Informa cs Prac ce course

Submi ed by:
Name of the students:
1. YALLA VISHNU VARDHAN REDDY
2. SANIVARAPU VEERA MOHAN REDDY
3. THARANG V.N
Under the guidance of Ms. KIRUTHIGA.R

DEPARTMENT OF INFORMATICS PRACTICES

SRI CHAITANYA TECHNO SCHOOL

HOUSE NO:121/4,5TH MAIN,7TH CROSS,MAHAYOGI VEMANA


RD,MALLESHPALYA, BENGALURU, KARNATAKA 560075
ACKNOWLEDGEMENT

I would like to thank the ins tu on for giving us the


opportunity to encase and display our talent through
this project.

I would like to thank my Informa cs Prac ces teacher,


Ms Kiruthiga.R, for having the pa ence to guide me at
every step of the project.

I am also grateful to the CBSE BOARD for challenging


and giving us this project in which we all were so
engrossed.

I would also like to thank our parents and friends who


helped us in ge ng the right informa on for this
project.
TABLE OF
CONTENTS

S.NO TOPIC – NAME PAGENO

1. Abstract 4

2. System requirements 5

3. CSV file design 6

4. Code 6

5. Output screen 10

6. Bibliography 13
ABSTRACT

“GAS BOOKING SYSTEM” project is useful for


customers as well as employees to keep track of sales
details this also have a user friendly interface for a
be er understanding.

The program provides a menu- driven interface to


users, offering various func onali es such as exploring
informa on about the pla orm, crea ng a new
account, logging in, ordering for their gas cylinder etc.

The features are meant to blend into the system


without any complex func onali es. The code
integrates pandas for data manipula on and Matplotlib
for Visualizing sales data, enhancing the overall user
experience.
SYSTEM REQUIREMENTS
HARDWARE COMPONENTS
1. VGA Monitor

2. Qwerty keyboard

3. 3.2 GB RAM

4. 2.6 GHz Processor

5. Graphics card

SOFTWARE COMPONENTS
1. Windows OS

2. Python

3. MS Excel (csv file)

CSV FILE DESIGN


CODING
import csv

import matplotlib.pyplot as plt

from date me import date me

# Func on to add a new booking

def add_booking():

with open('bookings.csv', 'a', newline='') as file:

writer = csv.writer(file)

booking_id = input("Enter Booking ID: ")

customer_name = input("Enter Customer Name: ")

contact = input("Enter Contact Details: ")

booking_date = date me.now().str ime("%Y-%m-%d")

delivery_date = input("Enter Delivery Date (YYYY-MM-DD): ")

status = 'Pending'

writer.writerow([booking_id, customer_name, contact, booking_date,


delivery_date, status])

print("Booking Added Successfully")

# Func on to update booking status

def update_status():

booking_id = input("Enter Booking ID to Update Status: ")


new_status = input("Enter New Status (Delivered/Cancelled): ")

rows = []

with open('bookings.csv', 'r') as file:

reader = csv.reader(file)

for row in reader:

if row[0] == booking_id:

row[5] = new_status

rows.append(row)

with open('bookings.csv', 'w', newline='') as file:

writer = csv.writer(file)

writer.writerows(rows)

print("Booking Status Updated")

# Func on to view bookings

def view_bookings():

with open('bookings.csv', 'r') as file:

reader = csv.reader(file)

for row in reader:

print(row)

def plot_booking_status():

statuses = []
with open('bookings.csv', 'r') as file:

reader = csv.reader(file)

for row in reader:

statuses.append(row[5])

status_counts = {status: statuses.count(status) for status in set(statuses)}

plt.pie(status_counts.values(), labels=status_counts.keys(), startangle=90,


autopct='%1.1f%%')

plt. tle('Booking Status Distribu on')

plt.show()

# Call this func on where appropriate in your user interface

# User Interface

def main():

while True:

print("\nGas Booking System")

print("1. Add Booking")

print("2. Update Booking Status")

print("3. View Bookings")

print("4. Booking Status Distribu on chart")


print("5. Exit")

choice = input("Enter Your Choice: ")

if choice == '1':

add_booking()

elif choice == '2':

update_status()

elif choice == '3':

view_bookings()

elif choice == '4':

plot_booking_status()

elif choice =='5':

break

else:

print("Invalid Choice. Please Try Again.")

if __name__ == "__main__":

main()
OUTPUT SCREENS

Screen 1: Home Page


Screen 2: About US
BIBLIOGRAPHY

h ps://www.google.com
h ps://www.python.org/
h ps://www.w3schools.com/python/python_func ons.asp
h ps://colab.research.google.com/ h ps://onedrive.live.com
THANK YOU

You might also like