0% found this document useful (0 votes)
44 views13 pages

Billing Software

The document outlines a Computer Science project titled 'Billing Software' created by students of Class XII-A at Kendriya Vidyalaya NFC Vigyan Vihar, under the guidance of Mr. Ranvijay Singh. The project aims to develop a functional billing system using Python, demonstrating key programming concepts while fulfilling academic requirements. It includes sections on hardware and software requirements, source code, outputs, and references.

Uploaded by

ashish0111kr
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)
44 views13 pages

Billing Software

The document outlines a Computer Science project titled 'Billing Software' created by students of Class XII-A at Kendriya Vidyalaya NFC Vigyan Vihar, under the guidance of Mr. Ranvijay Singh. The project aims to develop a functional billing system using Python, demonstrating key programming concepts while fulfilling academic requirements. It includes sections on hardware and software requirements, source code, outputs, and references.

Uploaded by

ashish0111kr
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/ 13

PM SHRI KENDRIYA VIDYALAYA

NFC VIGYAN VIHAR DELHI

COMPUTER SCIENCE PROJECT


2024-25
BILLING SOFTWARE
Submitted by: 1. Ashish Kumar
2. Shourya Anand
3. Vedant Bajpai
Class: XII-A
CBSE Roll Number:
Under the Guidance of:
RANVIJAY SINGH, PGT (CS)
CERTIFICATE

This is to certify that Ashish Kumar, Shourya Anand and


Vedant Bajpai of class: XII - A of KENDRIYA VIDYALAYA NFC
VIGYAN VIHAR has done their project on Billing Software
under my supervision. They have taken interest and has
shown at most sincerity in completion of this project.
I certify this project up to my expectation & as per guidelines
issued by CBSE, NEW DELHI.

_______________ ________________
Internal Examiner External Examiner

________
Principal

1|Page
ACKNOWLEDGMENT

It is with pleasure that we acknowledge our sincere gratitude to


our teacher, Mr. Ranvijay Singh, PGT(CS) who taught and
undertook the responsibility of teaching the subject computer
science. I have been greatly benefited from his classes.
I am especially indebted to our Principal Dr. Gaya Ravidas who
has always been a source of encouragement and support and
without whose inspiration this project would not have been a
successful I would like to place on record heartfelt thanks to him.

Finally, we would like to express my sincere appreciation for all


the other students of my batch & the fine time that we all shared
together.

2|Page
CONTENTS

1. Introduction
2. Hardware and Software Required
3. Python Source Code
4. Outputs
5. References

3|Page
INTRODUCTION
In today’s fast-paced world, businesses rely on efficient and
accurate billing systems to manage their sales and maintain
customer satisfaction. The project Billing Software aims to
provide a simple yet functional solution for generating customer
bills. Designed as a part of the Class 12th Computer Science
curriculum, this project demonstrates how Python can be utilized
to build real-world applications by combining logic and user
interaction.

This software simulates a billing system where users can select


products, specify quantities, and automatically generate a receipt
with itemized details and total cost. It highlights essential
programming concepts such as conditional statements, loops,
dictionaries, functions, and string formatting. Additionally, the
software ensures user engagement with its interactive input
prompts and error handling for invalid inputs.

This project not only fulfills academic requirements but also


provides a glimpse into how programming is used to solve
everyday business problems.

4|Page
HARDWARES AND
SOFTWARES REQUIRED

HARDWARES
1. Desktop Computer
2. Mobile Phone

SOFTWARES
1. Python (Latest Version)
2. Visual Studio Code

5|Page
PYTHON SOURCE CODE

import datetime

items = {
"101": {"name": "Milk\t", "price": 50},
"102": {"name": "Bread\t", "price": 40},
"103": {"name": "Eggs\t", "price": 8},
"104": {"name": "Butter\t", "price": 60},
"105": {"name": "Chocolate", "price": 20},
"106": {"name": "Pastry\t", "price": 40},
"107": {"name": "Donut\t", "price": 25},
"108": {"name": "Biskoot\t", "price": 10},
"109": {"name": "Patties\t", "price": 20},
"110": {"name": "Smoothie ", "price": 20}
}

def print_receipt(bill_items, total, customer_name):


print("\n======= BILL RECEIPT =======")
print(f"Customer Name: {customer_name}")
print(f"Date: {datetime.datetime.now().strftime('%Y-%m-%d
%H:%M:%S')}")
print("--------------------------------")
print("\nItems Purchased:")
print("Item ID\tName\t\tPrice\tQty\tTotal")
for item_id, details in bill_items.items():
item_name = details['name']
price = details['price']
quantity = details['quantity']
6|Page
total_price = price * quantity
print(f"{item_id}\t{item_name}\t{price}\t{quantity}\t{total_pri
ce}")
print("\n--------------------------------")
print(f"Total Amount: {total}")
print("--------------------------------\n")
print("Thank you for shopping! Have a great day!\n")

def main():
print("\nWelcome to the XYZ Store")
customer_name = input("Please enter your name: ")

print(f"Hello, {customer_name}!\n")

bill_items = {}
total_amount = 0

while True:
print("\nAvailable Items:")
for item_id, details in items.items():
print(f"ID: {item_id}, Name: {details['name']}, Price:
{details['price']}")

item_id = input("Enter the Item ID to purchase (or type 'done'


to finish): ")
if item_id.lower() == 'done':
break

if item_id in items:
try:
quantity = int(input("How many would you like to buy? "))
7|Page
if quantity <= 0:
print("Quantity must be greater than zero. Please try
again.")
continue

item_name = items[item_id]['name']
item_price = items[item_id]['price']

if item_id in bill_items:
bill_items[item_id]['quantity'] += quantity
else:
bill_items[item_id] = {
'name': item_name,
'price': item_price,
'quantity': quantity
}

total_amount += item_price * quantity


print(f"Added {quantity} x {item_name} to your bill.\n")
except ValueError:
print("Invalid input for quantity. Please enter a number.")
else:
print("Invalid Item ID. Please try again.")

if bill_items:
print_receipt(bill_items, total_amount, customer_name)
else:
print("No items purchased.")

if __name__ == "__main__":
main()
8|Page
OUTPUTS

9|Page
10 | P a g e
11 | P a g e
REFERENCES

1. Computer Science with Python for Class 12


~ Sumita Arora

2. www.google.com

12 | P a g e

You might also like