You are on page 1of 17

AISSCE

NAME : Saptarshi Mondal

CLASS : XI

SECTION : FIR

ROLL NUMBER : 39

SUBJECT : Physics Activity File


BURDWAN MODEL SCHOOL

CERTIFICATE

This is to certify that Saptarshi Mondal has successfully completed the assignment in

the subject of Computer Science (083), laid down in the regulations of CBSE for the purpose

of Practical Examination of Class XI to be held Burdwan Model School

on______________.

 Signature of Internal Examiner

Name: _______________________

Examiner Number:_______________
TABLE OF CONTENTS

SR NO. DESCRIPTION PAGE NO

01 ACKNOWLEDGEMENT 04

02 INTRODUCTION 05-07

03 MECHANISM OF THE CODE 08-09

04 SOURCE CODE 10-12

05 INPUT AND OUTPUT SCREENSHOTS 13

06 TESTING 14-15

07 HARDWARE AND SOFTWARE REQUIREMENTS 16

08
BIBLIOGRAPHY 17
ACKNOWLEDGEMENT

Apart from the efforts of me, the success of any project depends largely on the
encouragement and guidelines of many others. I take this opportunity to express my
gratitude to the people who have been instrumental in the successful completion of this
project.

I express deep sense of gratitude to almighty God for giving me strength for the
successful completion of the project.

I express my heartfelt gratitude to my parents for constant encouragement while


carrying out this project.

I gratefully acknowledge the contribution of the individuals who contributed in


bringing this project up to this level, who continues to look after me despite my flaws,

I express my deep sense of gratitude to the luminary The Principal, Burdwan


Model School who has been continuously motivating and extending their helping hand
to us.

I am overwhelmed to express my thanks to The Administrative Officer for


providing me an infrastructure and moral support while carrying out this project in the
school.

My sincere thanks to Manas Banerjee Sir & Kousik Kundu Sir, A guide, Mentor
all the above a friend, who critically reviewed my project and helped in solving each
and every problem, occurred during implementation of the project

The guidance and support received from all the members who contributed and
who are contributing to this project, was vital for the success of the project. I am
grateful for their constant support and help.
PROJECT ON BILLING MANAGEMENT SOFTWARE

INTRODUCTION
The "Billing Management Software" is a Python project designed to take a input of
the items to purchase, take its quantity, calculate the total price of the items
purchased including the tax, choose the mode of payment and then proceed to pay
for the items purchased with the chosen mode of payment . This project is
particularly useful for applications , such as check-out windows, order windows,
or any context where a human-readable format is preferred.

PROJECT COMPONENTS:

1. User Input:
 The project begins by obtaining the number of items, name of items
from the user.

2. Calculation of total cost of each items:


 In this part, the total cost of each item purchased according to the
quantity is calculated, added and stored, without the evaluation of
tax.

3. Choice of Mode of Payment and submission of Billing Details:


 This is the main part of the entire project, where the details of the
costumer is taken as a input and then a choice of mode of payments
is provided to the costumer. The user chooses his/her preferable
mode of payment and according to that, a discount is provided on
the total cost of the items.

4. Error Handling:
 The project incorporates error-handling mechanisms to deal with
invalid inputs gracefully. This ensures a smooth user experience and
prevents unexpected issues during execution.

5. User Experience Enhancements:


 The user interface is designed to be user-friendly, providing clear
instructions and options for the user to continue shopping for more
numbers if desired.

6. Documentation and Comments:


 The code is thoroughly documented with comments to explain the
logic and functionality. This enhances code readability and makes it
easier for others to understand and potentially contribute to the
project.

How to Run the Program:


 Users can run the program by executing the main script. The program
prompts the user to enter a numeric value, performs the conversion, and
displays the result in words.

Usage:
 The "Billing Management Software" project finds applications in shopping
centres, e-commerce and e-marketing websites, where billing software is
preferred for the convenience of the customers.

Conclusion:
 This Python project provides a practical solution for managing billing in
sectors of marketing and e-commerce, offering a versatile tool for
developers working on applications that require the presentation of
numerical data in a more user-friendly format.

Mechanism of the Project:

1. First, users input the number of items they want to purchase:


print("Please enter the number of items you want to purchase: ")
n = int(input())

2. Users then enter the items they want from the list of the items provided along with the
quantity:

print(f"\n Please select the item number {i} that you would like to purchase
from the list above: "
"(For example: Enter 1 for buying Tea)")
itn = int(input())

print(f"Enter the quantity of {goods[itn][0]} you want : ")


qty = int(input())

3. Computation of total cost of all the items is done and stored, without evaluation of tax
and the items purchased are stored in a list:

amt = goods[itn][1] * qty


totamt += amt
itemname += f"{goods[itn][0]} "
print(f"Total cost of purchasing {qty} kgs of {goods[itn][0]}
(excluding tax): Rs {amt}\n")

4. Personal details are taken as input from the user for the computation of the bill.

print("Thank you for selecting the items to purchase, please proceed to the
billing section: ")
print("Please enter your name: ")
name = input()
print("Please enter your phone number: ")
number = int(input())

5. Choice of mode of payments is provided and the user chooses the preferred mode of
payment.

print("Modes of payment:\ni) Cash \nii) UPI \niii) Credit Card \niv) Debit
Card")
print()
print("Discounts on total price for mode of payments:\nCash: 5%\nUPI: 4%\
nCredit Card: 5%\nDebit Card: 2% ")
print()
print("Please select your mode of payment: ")
pay_mode=input().lower()
if(pay_mode=="cash"):
dis_price=famt-(0.05*famt)
if(pay_mode=="upi"):
dis_price=famt-(0.04*famt)
if(pay_mode=="credit card"):
dis_price=famt-(0.05*famt)
if(pay_mode=="debit card"):
dis_price=famt-(0.02*famt)
print("Discounted price: Rs",dis_price)

6. The Invoice is printed along with the details of the customer and the total details of the
items purchased and the total money to be paid by the customer:

print("\n--------------------------------------------------
~~~~~~'INVOICE'~~~~~~---------------------------------------------")
print(f"Costumer name: {name}")
print(f"Phone number of costumer: {number}")
print(f"Number of items purchased: {n}")
print(f"Items purchased: {itemname}\n")
print("Tax levied: 5%")
print(f"Total amount to be paid (including tax): Rs {famt}\n")
print()

7. The user may choose to close the program or continue shopping:

print("If you want to continue shopping, please press Y or else press N to


exit.")
choice=input().lower()
if(choice=="y"):
continue
elif(choice=="n"):
print("\n-----------------------------------------------~~~~~~~'THANK
YOU FOR SHOPPING'~~~~~~-----------------------------------------")
break

SOURCE CODE :
name = ""
pay_mode=""
itemname = ""
number = 0
itn = 0
n = 0
i = 0
amt = 0.0
qty = 0.0
totamt = 0.0
famt = 0.0
goods = {
1: ("Darjeeling Tea", 30),
2: ("Premium Coffee", 45),
3: ("Packaged Honey Jar", 35),
4: ("All Purpose Flour(Maida)",20),
5: ("Wheat Flour(Aata)", 14),
6: ("Mixed Lentils", 25),
7: ("Sugar", 15),
8: ("Packaged Salt Packs", 55),
9: ("Biscuit Packs", 26),
10: ("Condiment Packs", 25)
}

while True:
print("---------------------------------------------------------
~~~~~~'GROCERY SHOPPING
MALL'~~~~~~---------------------------------------------\n")

print("--------------------------------------------------------------------
~~~~~~'WELCOME'~~~~~~--------------------------------------------------------\
n")
print("For today, we have hefty-save deals on the following items: ")
print("i) Darjeeling Tea\nii) Premium Coffee\niii) Packaged Honey Jar\niv)
All Purpose Flour(Maida)\nv) Wheat Flour(Aata)\nvi) Mixed Lentils\nvii) Sugar\
nviii) Packaged Salt Packs\nix) Biscuit Packs\nx) Condiment Packs")
print()
print("Please enter the number of items you want to purchase: ")
n = int(input())
print()
print("\nGOODS"+"\t\t\t\t\t\t\t\t\t\t\t\t"+"PRICE(in Rs)")
for key, value in goods.items():
print(f"{key}. {value[0]}\t\t\t\t\t\t\t\t\t\tRs {value[1]} per unit")
for i in range(1, n + 1):
print(f"\n Please select the item number {i} that you would like to
purchase from the list above: "
"(For example: Enter 1 for buying Tea)")
itn = int(input())
qty = 0.0
amt = 0.0

if itn in goods.items():
print(f"Enter the quantity of {goods[itn][0]} you want : ")
qty = int(input())
amt = goods[itn][1] * qty
totamt += amt
itemname += f"{goods[itn][0]} "
print(f"Total cost of purchasing {qty} kgs of {goods[itn][0]}
(excluding tax): Rs {amt}\n")

famt = totamt + (0.05 * totamt)


print("Thank you for selecting the items to purchase, please proceed to
the billing section: ")
print("Please enter your name: ")
name = input()
print("Please enter your phone number: ")
number = int(input())
print("Modes of payment:\ni) Cash \nii) UPI \niii) Credit Card \niv) Debit
Card")
print()
print("Discounts on total price for mode of payments:\nCash: 5%\nUPI: 4%\
nCredit Card: 5%\nDebit Card: 2% ")
print()
print("Please select your mode of payment: ")
pay_mode=input().lower()
if(pay_mode=="cash"):
dis_price=famt-(0.05*famt)
if(pay_mode=="upi"):
dis_price=famt-(0.04*famt)
if(pay_mode=="credit card"):
dis_price=famt-(0.05*famt)
if(pay_mode=="debit card"):
dis_price=famt-(0.02*famt)
print("Discounted price: Rs",dis_price)

print("\n--------------------------------------------------
~~~~~~'BILL'~~~~~~---------------------------------------------")
print(f"Costumer name: {name}")
print(f"Phone number of costumer: {number}")
print(f"Number of items purchased: {n}")
print(f"Items purchased: {itemname}\n")
print("Tax levied: 5%")
print(f"Total amount to be paid (including tax): Rs {famt}\n")
print()
print("If you want to continue shopping, please press Y or else press N to
exit.")
choice=input().lower()
if(choice=="y"):
continue
elif(choice=="n"):
print("\n-----------------------------------------------~~~~~~~'THANK
YOU FOR SHOPPING'~~~~~~-----------------------------------------")
break

INPUT AND OUTPUT:


TESTING
Software Testing is an empirical investigation conducted to provide stakeholders
with information about the quality of the product or service under test[1] , with respect
to the context in which it is intended to operate. Software Testing also provides an
objective, independent view of the software to allow the business to appreciate and
understand the risks at implementation of the software. Test techniques include, but are
not limited to, the process of executing a program or application with the intent of
finding software bugs.
It can also be stated as the process of validating and verifying that a software
program/application/product meets the business and technical requirements that
guided its design and development, so that it works as expected and can be
implemented with the same characteristics. Software Testing, depending on the testing
method employed, can be implemented at any time in the development process,
however the most test effort is employed after the requirements have been defined and
coding process has been completed.

TESTING METHODS
Software testing methods are traditionally divided into black box testing and
white box testing. These two approaches are used to describe the point of view that a
test engineer takes when designing test cases.

BLACK BOX TESTING


Black box testing treats the software as a "black box," without any knowledge of
internal implementation. Black box testing methods include: equivalence partitioning,
boundary value analysis, all-pairs testing, fuzz testing, model-based testing, traceability
matrix, exploratory testing and specification-based testing.

SPECIFICATION-BASED TESTING

Specification-based testing aims to test the functionality of software according to


the applicable requirements.[16] Thus, the tester inputs data into, and only sees the
output from, the test object. This level of testing usually requires thorough test cases to
be provided to the tester, who then can simply verify that for a given input, the output
value (or behaviour), either "is" or "is not" the same as the expected value specified in
the test case. Specification-based testing is necessary, but it is insufficient to guard
against certain risks

ADVANTAGES AND DISADVANTAGES

The black box tester has no "bonds" with the code, and a tester's perception is
very simple: a code must have bugs. Using the principle, "Ask and you shall receive,"
black box testers find bugs where programmers don't. But, on the other hand, black box
testing has been said to be "like a walk in a dark labyrinth without a flashlight," because
the tester doesn't know how the software being tested was actually constructed.
That's why there are situations when (1) a black box tester writes many test
cases to check something that can be tested by only one test case, and/or (2) some parts
of the back end are not tested at all. Therefore, black box testing has the advantage of
"an unaffiliated opinion," on the one hand, and the disadvantage of "blind exploring," on
the other.

HARDWARE AND SOFTWARE REQUIREMENTS


I.OPERATING SYSTEM : WINDOWS 7 AND ABOVE

II. PROCESSOR : PENTIUM(ANY) OR AMD

ATHALON(3800+- 4200+ DUAL CORE)

III. MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM 0R MSI

K9MM-V VIA K8M800+8237R PLUS CHIPSET

FOR AMD ATHALON

IV. RAM : 2GB+

V. Hard disk : SATA 40 GB OR ABOVE

VI. CD/DVD r/w multi drive combo: (If back up required)

VII. FLOPPY DRIVE 1.44 MB : (If Backup required)

SOFTWARE REQUIREMENTS:

I. Windows OS
II. Python Compiler and an IDE
BIBLIOGRAPHY

1. Computer science With Python - Class XI By : Sumita Arora


2. Website: https://www.youtube.com
3. Python Official Documentation.

***

You might also like