STARLING INTERNATIONAL
SCHOOL
SESSION – 2024-25
PROJECT FILE
OF
COMPUTER SCIENCE
SUBMITTED TO: SUBMITTED BY:
SAURAV BHATTACHARJEE SIR RUNGSHIT
KUNDU
PGT (COMPUTER SCIENCE) XI, A
Page 1 of 12
ROLL – 14
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.
RUNGSHIT KUNDU
XI (COMPUTER SCIENCE)
Page 2 of 12
CERTIFICATE
THIS IS TO CERTIFY THAT RUNGSHIT KUNDU 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
Page 5 of 12
payment_methods = {1: "Cash", 2: "UPI", 3: "Card"}
discounts = {1: 0.05, 2: 0.10, 3: 0.07}
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
Page 6 of 12
gst = price_after_discount * gst_rate
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!")
Page 7 of 12
break
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: rungshit
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: rungshit
Customer Address: shyamnagar
Payment Method: Card
Items:
Page 8 of 12
- books: ₹ 200.00
- 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
8GB 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