import matplotlib
import matplotlib
XII (Science)
16
Informatics Practices
ACKNOWLEDGEMENT
(1)
CERTIFICATE
__________________________________ ____________________________________
Signature of External Examiner Signature of Internal Examiner
____________________________________________
Principal’s Signature
(2)
DECLARATION
I also declare that this project work has neither been submitted to
any other board nor published at any time by me in the past.
Tanima Sadhukhan
Roll No:
Class 12
Shri Santoshi Maa Aademy
(3)
INDEX
SLNO. TOPIC PAGE
NO.
1) Acknowledgement 1
2) Certificate 2
3) Declaration 3
4) Introduction 4
5) Project Statement 5
6) Objectives 6
7) Project Scope 7
8) Software Requirements and 8
Specifications
9) Overview of Python 9
10) Data Flow Diagram 10
11) Project Menus 11
12) CSV File 12
13) Source Code 13-17
15) Conclusion 24
16) Bibliography 25
INTRODUCTION
(4)
Problem Statement
(5)
Objectives
The objective of project is to build an application program to:
• Provide function to manage data on sweet in shop more
efficiently.
• Provide searching facility based on various factors.
• Reduce time and cost to control and manage data .
• Reduce paperwork.
• Increased accuracy and reliability.
• Increased Data Consistency.
• Increased Data security.
This application program can be used easily by non-
programming personals.
(6)
Project Scope
Managing all products, sufficient stocks, sale and purchase
records and analyzing sales is a tedious job for any business.
To do it more effectively and correctly a good data
management is required. This is provided by our application
which have following scope,
ensures effective inventory control.
manage daily sales records easily and precisely.
can perform sales analysis of various products.
user friendly interface.
very easy to use.
High level security of data.
(7)
System Requirements and Specifications
Software Requirements
Operating System Window-10 and later versions (32bit,64bit)
Language - Python
Plateform - Python IDLE 3.7 (min)
Database – CSV
Plotting - Matplotlib
Hardware Requirements
Processor Pentium Dual Core(min) 32bitor64bit
Hard-Disk 160GB (min)
RAM 1G8 (min)
Input/output Requirements
Input Mouse (any)
Input ,Keyboard (any)
Output : Monitor
Output : Printer
(8)
OVERVIEW OF PYTHON
Python is a general purpose, dynamic, high-level, and
interpreted programming language. It supports Object
Oriented programming approach to develop applications. It is
simple and easy to learn and provides lots of high-level data
structures. Guido Van Rossum is known as the founder of
Python programming
Features of Python:
Python is a high level language. It is a free and open
source language.
It is an interpreted language, as Python programs are
executed by an interpreter.
Python programs are easy to understand as they have a
clearly defined syntax and relatively simple structure.
Python is portable and platform independent, means it
can run on various operating systems and hardware
platforms.
• Python has a rich library of predefined functions.
Python is also helpful in web development. Many popular
web services and applications are built using Python,
Python uses indentation for blocks and nested blocks.
(9)
DATA FIOW DIAGRAM
CSV File
(10)
PROJECT MENUS
(11)
CSV File
1) CSV File of Sweet
(12)
PROJECT CODE
(13)
df=pd.read_csv('sweets.csv',index_col='Code')
bf=pd.read_csv('customer.csv',index_col='billid')
while True:
print("press 1 - Add a New sweet")
print("press 2 - Show all")
print("press 3 - Search")
print("press 4 - Delete")
print("press 5 - Update")
print("press 6 - Create Bill")
print("press 7 - Show Chart Of Sweets")
print("press 8 - Show Chart Of Bills")
print("press 9 - To Quit")
n=int(input("Enter your choice :"))
if n == 1:
addSweet(df)
elif n == 2:
print("\n","*"*50)
print(df)
print("*"*50)
elif n == 3:
code=int(input("Enter the sweet code :"))
if code in df.index:
print(df.loc[code])
(14)
print("\n")
else:
print("No Sweet found with this code")
elif n == 4:
code =int(input("Enter the sweet code to be deleted :"))
if code in df.index:
df.drop(code,inplace=True)
df.to_csv("sweets.csv")
print(df)
print("\nDeleted\n")
print(df)
else:
print("No sweet found with this code ")
elif n == 5:
code =int(input("Enter the sweet code to be updated :"))
if code in df.index:
name = input("Enter the updated name of the sweet :")
cost = int(input("Enter updated cost per kg :"))
qty = float(input("Enter the quantity in kgs :"))
ig = input("Enter the main ingradient :")
df.loc[code]=[name,cost,qty,ig]
print("\nUpdated\n")
df.to_csv("sweets.csv")
(15)
print(df)
else:
print("No sweet found with this code")
elif n == 6:
print("Available Sweets")
print("\n","*" *50)
print(df)
print("*" * 50)
code= int(input("Enter the code of the sweet to be purchased"))
if code in df.index:
qty=int(input("Enter the quantity to be purchased :"))
amt= qty * df.loc[code,"Cost"]
print("Your Due Ammount is " ,amt)
name = input("Enter customer Name : ")
bdate =input("Enter Billing Date : ")
bf =pd.read_csv("customer.csv",index_col="billid")
bf.loc[random.randint(1000,9999)]=[name,bdate,amt,df.loc[code,"
Name"]]
bf.to_csv("customer.csv")
print("\n Customer Added successully \n")
bf.to_csv("customer.csv")
print(bf)
(16)
elif n == 7:
plt.bar(df["Name"],df["Cost"],color="violet")
plt.title("Rate list of sweets")
plt.show()
elif n == 8:
bf =pd.read_csv("customer.csv",index_col='billid')
plt.bar(bf["Name"],bf["order_amt"],color="violet")
plt.title("sold sweets")
plt.show()
elif n == 9:
print("Thanks for Visiting")
print("Data Uploded !!!")
break
________________
(17)
OUTPUT
1) Add a New Sweet
2) Show all
(18)
3) Search
3) Delete
(19)
5) Update
(20)
6) To Create Bill
(21)
7) The Chart Of Sweet
(22)
9) To Quit
_________________
(23)
CONCLUSION
(24)
BIBLIOGRAPHY
1) https://www.wikipedia.org/
2)https://www.youtube.com/
(25)
_______________________________________________