0% found this document useful (0 votes)
0 views

Python Invoice Project

The document is a project file for Computer Science submitted by Samrat Bhattacharjee for the session 2024-25 at Starling International School. It includes acknowledgments, a certificate of completion, Python code for a billing system, output examples, hardware and software requirements, and a bibliography. The project demonstrates the use of Python for creating an invoice system with various payment methods and calculations.

Uploaded by

smartninja1947
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)
0 views

Python Invoice Project

The document is a project file for Computer Science submitted by Samrat Bhattacharjee for the session 2024-25 at Starling International School. It includes acknowledgments, a certificate of completion, Python code for a billing system, output examples, hardware and software requirements, and a bibliography. The project demonstrates the use of Python for creating an invoice system with various payment methods and calculations.

Uploaded by

smartninja1947
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/ 12

STARLING INTERNATIONAL

SCHOOL

SESSION – 2024-25

PROJECT FILE
OF
COMPUTER SCIENCE

SUBMITTED TO: SAURAV BHATTACHARJEE SIR.


PGT (COMPUTER SCIENCE) XI, A
SUBMITTED BY: SAMRAT BHATTACHARJEE .
ROLL – 16

Page 1 of 12
ACKNOWLEDGEMENT

I WOULD LIKE TO EXPRESS A DEEP SENSE OF THANKS &


GRATITUDE TO MY TACHER, SAURAV BHATTACHARJEE WHO
TAUGHT AND UNDERTOOK THE RESPONSIBILITY OF
TEACHING THE SUBJECT COMPUTER SCIENCE.

MY SINCERE THANKS GOES TO OUR PRINCIPAL HEMASREE


DATTA WHO HAS ALWAYS BEEN A SOUCE OF
ENCOURAGEMENT AND SUPPORT AND WITHOUT WHOSE
INSPIRATION, THIS PROJECT WOULD NOT HAVE BEEN A
SUCCESS.

I SINCERELY THANK MY PARENTS FOR THE


UNCONDITIONAL SUPPORT AND MY FRIENDS FOR THEIR
VALUABLE HELP.

SAMRAT BHATTACHARJEE

XI (COMPUTER SCIENCE)

Page 2 of 12
CERTIFICATE

THIS IS TO CERTIFY THAT SAMRAT BHATTACHARJEE OF


CLASS XI (COMPUTER SCIENCE) OF STARLING
INTERNATIONAL SCHOOL SUBMITTED THE “COMPUTER
PROJECT FILE”. HE HAS PREPARED THE FILE UNDER MY
SUPERVISION.

HE HAS TAKEN INTEREST AND HAS SHOWN ATMOST


SINCERITY IN COMPLETION OF THIS PROJECT.

I CERTIFY THIS PRACTICAL UP TO MY EXPECTATION & AS


PER GUIDELINES ISSUES BY CBSE, FOR THE SESSION 2024-
25.

INTERNAL EXAMINER EXTERNAL


EXAMINER

___________________ ___________________

SIGNATURE OF PRINCIPAL

_______________________

Page 3 of 12
INDEX

S.NO TOPIC REMARKS TEACHERS


SIGNATURE
1 INVOICE USING
PYTHON

Page 4 of 12
PYTHON CODE

while True:

print("Welcome to the Billing System")

print("Select Payment Method: 1 for Cash, 2 for UPI, 3 for Card")

print("Press '0' to exit.")

choice = input("Enter your choice: ")

if choice == '0':

print("Exiting program. Thank you!")

break

name = input("Enter customer name: ")

address = input("Enter customer address: ")

if choice not in ['1', '2', '3']:

print("Invalid choice. Please try again.")

continue

payment_methods = {1: "Cash", 2: "UPI", 3: "Card"}

discounts = {1: 0.05, 2: 0.10, 3: 0.07}

Page 5 of 12
payment_method = payment_methods[int(choice)]

discount_rate = discounts[int(choice)]

num_items = int(input("Enter the number of items: "))

items = []

total_price = 0

for i in range(num_items):

item_name = input(f"Enter name of item {i + 1}: ")

item_price = float(input(f"Enter price of item {i + 1}: ₹"))

items.append((item_name, item_price))

total_price += item_price

discount = total * discount_rate

price_after_discount = total_price - discount

carry_bag = input("Do you want a carry bag? (yes/no):


").strip().lower()

carry_bag_cost = 10 if carry_bag == 'yes' else 0

gst_rate = 0.18

gst = price_after_discount * gst_rate

Page 6 of 12
final_price = price_after_discount + gst + carry_bag_cost

print("\nInvoice")

print(f"Customer Name: {name}")

print(f"Customer Address: {address}")

print(f"Payment Method: {payment_method}")

print("Items:")

for item_name, item_price in items:

print(f" - {item_name}: ₹ {item_price:.2f}")

print(f"Total Price (before discount): ₹ {total_price:.2f}")

print(f"Discount: ₹ {discount:.2f}")

print(f"Price After Discount: ₹ {price_after_discount:.2f}")

print(f"GST (18%): ₹ {gst:.2f}")

print(f"Carry Bag Cost: ₹ {carry_bag_cost:.2f}")

print(f"Final Total Price: ₹ {final_price:.2f}")

print("=" * 30)

continue_choice = input("Do you want to make another entry?


(yes/no): ").strip().lower()

if continue_choice != 'yes':

print("Exiting program. Thank you!")

break

Page 7 of 12
OUTPUT

Welcome to the Billing System

Select Payment Method: 1 for Cash, 2 for UPI, 3 for Card

Press '0' to exit.

Enter your choice: 3

Enter customer name: Samrat

Enter customer address: Shyamnagar

Enter the number of items: 2

Enter name of item 1: books

Enter price of item 1: ₹200

Enter name of item 2: pens

Enter price of item 2: ₹50

Do you want a carry bag? (yes/no): yes

Invoice

Customer Name: Samrat

Customer Address: Shyamnagar

Payment Method: Card

Items:

- books: ₹ 200.00

Page 8 of 12
- pens: ₹ 50.00

Total Price (before discount): ₹ 250.00

Discount: ₹ 17.50

Price After Discount: ₹ 232.50

GST (18%): ₹ 41.85

Carry Bag Cost: ₹ 10.00

Final Total Price: ₹ 284.35

==============================

Do you want to make another entry? (yes/no): no

Exiting program. Thank you!

Page 9 of 12
HARDWARE AND SOFTWARE
REQUIREMENTS

 PRINTER TO PRINT THE PROJECT


 MS WORD FOR REPRESENTATION
 IDLE PYTHON FOR EXECUTION OF THE PROGRAM
 16GB OF RAM AND 512GB OF ROM

Page 10 of 12
BIBLIOGRAPHY

 NCERT TEXTBOOK – COMPUTER SCIENCE XI.


 MICROSOFT WORD.
 INTERNET

Page 11 of 12
THANK
YOU

Page 12 of 12

You might also like