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

Rahul Cs Project 2024

This project report summarizes a Grocery Store Management System created by Rahul Negi for their Computer Science class. The report includes an introduction, objectives, existing system overview, proposed system features, resource requirements, tables of data, and code snippets using Python for data visualization of grocery prices over years. The proposed system uses Python libraries like NumPy and Matplotlib to analyze price data stored in CSV files, providing faster access and a more interactive way to view performance trends over time compared to traditional methods.

Uploaded by

RAHUL NEGI
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)
17 views

Rahul Cs Project 2024

This project report summarizes a Grocery Store Management System created by Rahul Negi for their Computer Science class. The report includes an introduction, objectives, existing system overview, proposed system features, resource requirements, tables of data, and code snippets using Python for data visualization of grocery prices over years. The proposed system uses Python libraries like NumPy and Matplotlib to analyze price data stored in CSV files, providing faster access and a more interactive way to view performance trends over time compared to traditional methods.

Uploaded by

RAHUL NEGI
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/ 37

Mount Litera Zee School

Dehradun

COMPUTER SCIENCE WITH PYTHON


Subject Code-083
Session:(2023-24)
PROJECT REPORT
On
"Grocery Store Management System"
Submitted To: Submitted By:
MS. ALISHA PATHANIA RAHUL NEGI
(PGT-COMPUTER SCIENCE) ROLL NO.-18
CERTIFICATE

THIS IS TO CERTIFY THAT RAHUL NEGI


OF CLASS XII A HAS SUCCESSFULLY
WORKED UNDER MY SUPERVISION ON
THE PROJECT ‘GROCERY
MANAGEMENT’ AND COMPLETED IT TO
MY FULL SATISFACTION.

CANDIDATE’S SIGN:-
INTERNAL’S SIGN:-
EXTERNAL’S SIGN:-
ACKNOWLEDGEMENT

I AM THANKFUL TO OUR CS.


TEACHER MRS ALISHA PATHANIA
WHO HELPED AND GUIDED ME
WHILE MAKING THIS PROJECT. I
WOULD ALSO LIKE TO THANK THE
CS. DEPARTMENT OF OUR SCHOOL,
MOUNT LITRA ZEE SCHOOL
DEHRADUN WHO HELPED AND GAVE
TIME FOR THE COMPLETION OF MY
PROJECT.
TABLE OF CONTENTS

⮚ INTRODUCTION

⮚ OBJECTIVE OF THE PROJECT

⮚ SCOPE OF THE PROJECT

⮚ EXISTING SYSTEM

⮚ PROPOSED SYSTEM

⮚ RESOURCES REQUIRED

⮚ TABLES
⮚ REFRENCES
INTRODUCTION

VEGETABLE PRICES
This project has been made for analyzing
the VEGETABLE PRICES IN INDIA
OVER LAST 5 YEARS.
The given data compares the prices of
three different vegetables(onion, tomato,
potato) over last 5 years with different
data visualisation methods.
OBJECTIVE OF THE PROJECT

The main aim of this project is to analyze


the price of vegetables over years in india
up till now.
It helps to store the data about the price of
vegetables in India over years in the form of
tables using a CSV file and these records
can be easily accessed by a person in a fast
and easy manner, and analyze the
performances.
SCOPE OF THE PROJECT

The project can be used for ANALYSIS OF


VEGETABLE PRICES OVER YEARS IN
INDIA As of now the system compares the
prices only on the basis of the average price
over the last 5 years.
THE EXISTING SYSTEM

The existing system uses manual methods


for analyzing which requires a lot of time,
labor, and cost intensive using spreadsheets
or other forms of data whereas this project
will minimize these and will provide a better
and efficient way to do by using Python and
CSV files.
This will also provide a way to look at the
records/performances in a rather interactive
and colorful manner.
THE PROPOSED SYSTEM

The Proposed system will be use


programs like Python and its
Libraries (like NumPy and
Matplotlib) and Excel for creating
CSV files for analyzing vegetable
prices in india. Our proposed system
has the following advantages:

⮚ User friendly

⮚ Fast access to data

⮚ Less error

⮚ More storage capacity

⮚ Search facility
RESOURCES REQUIRED
MINIMUM HARDWARE
REQUIREMENTS:

●PROCESSOR : Pentinum IV or better

●RAM: 512 MB or more

●HARD DISK: 100GB or more

●MONITOR : ANY

MINIMUM SOFTWARE
REQUIREMENTS:

●OS: Windows 7 or above.


●LANGUAGE: Python 3.8 with numpy,
matplotib and pandas library.

●OTHER APPLICATION: Ms Excel or any

SYSTEM DESIGN

INPUT DESIGN:
Input design is the process of converting
user-oriented input to a computer-based
format. Input design is a part of overall
system design, which requires very careful
attention. Often the collection of input data
is the most expensive part of the system.
THE MAIN OBJECTIVE OF THE INPUT
DESIGN ARE:
⮚ Produce cost effective method of input.

⮚ Achieve highest possible level of


accuracy.
⮚ Ensure that the input is acceptable to and
understood by the staff.

What is Python?
Python is a popular programming language. It was created by
Guido van Rossum, and released in 1991.

It is used for:

● web development (server-side),


● software development,
● mathematics,
● system scripting.

WHAT CAN PYTHON DO?


● Python can be used on a server to create web applications.
● Python can be used alongside software to create workflows.
● Python can connect to database systems. It can also read
and modify files.
● Python can be used to handle big data and perform complex
mathematics.
● Python can be used for rapid prototyping, or for production-
ready software development.

WHY PYTHON?
● Python works on different platforms (Windows, Mac, Linux,
Raspberry Pi, etc).
● Python has a simple syntax similar to the English language.
● Python has syntax that allows developers to write programs
with fewer lines than some other programming languages.
● Python runs on an interpreter system, meaning that code
can be executed as soon as it is written. This means that
prototyping can be very quick.
● Python can be treated in a procedural way, an object-
oriented way or a functional way.

What is Data Visualization?

Data visualization is a field in data


analysis that deals with visual
representation of data. It graphically
plots data and is an effective way to
communicate inferences from data.

Using data visualization, we can get a


visual summary of our data. With
pictures, maps and graphs, the human
mind has an easier time processing and
understanding any given data. Data
visualization plays a significant role in
the representation of both small and large
data sets, but it is especially useful when
we have large data sets, in which it is
impossible to see all of our data, let alone
process and understand it manually.

Data Visualization in Python

Python offers several plotting libraries,


namely Matplotlib, Seaborn and many
other such data visualization packages
with different features for creating
informative, customized, and appealing
plots to present data in the most simple
and effective way.

Figure 1: Data visualization


Matplotlib and Seaborn

Matplotlib and Seaborn are python libraries that


are used for data visualization. They have
inbuilt modules for plotting different graphs.
While Matplotlib is used to embed graphs into
applications, Seaborn is primarily used for
statistical graphs.

But when should we use either of the two? Let’s


understand this with the help of a comparative
analysis. The table below provides comparison
between Python’s two well-known visualization
packages Matplotlib and Seaborn.
Table of data:
Editio Year Host Countries Competitor Sports Events
n s

1 1951 New Delhi 11 489 6 57

2 1954 Manila 18 970 8 76

3 1958 Tokyo 16 1,820 13 97

4 1962 Jakarta 12 1,460 13 88

5 1966 Bangkok 16 1,945 14 143

6 1970 2,400 13 135

7 1974 Tehran 19 3,010 16 202

8 1978 Bangkok 3,842 19 201

9 1982 New Delhi 23 3,411 21 147

10 1986 Seoul 22 4,839 25 270

11 1990 Beijing 31 6,122 27 310

12 1994 Hiroshima 42 6,828 34 338

13 1998 Bangkok 41 6,554 36 377

14 2002 Busan 44 7,711 38 419

15 2006 Doha 45 9,520 39 424

16 2010 Guangzhou 41 9,704 42 476

17 2014 Incheon 45 9,501 37 439


Gold Silver Bronze Total

Rank

1 1473 994 720 3187

1032 1037 985 3054

3 745 663 827 2235

4 179 181 197 557

5 155 201 316 672

6 155 158 244 557

132 175 279 586

110 144 179 433

9 99 144 276 519

10 91 120 235 446

Totals (10 4171 3817 4258 12246


entries)
CODE
LINE GRAPHS
import pandas as pd

import numpy as np

import matplotlib.pyplot as plt

#First to show full data-:

Data=pd.read_csv("C:\\Users\\farha\\OneDrive\\Documents\\
Book.csv",encoding='latin1')

print(Data)

#analysing data with graphs-:

import pandas as pd

from matplotlib import pyplot as plt

columns=["Year","Host city"]

df=pd.read_csv("C:\\Users\\farha\\OneDrive\\Documents\\
Data2.csv",usecols=columns,encoding='latin1')

print("content in csv file",df)

plt.rcParams["figure.figsize"] = [7.00, 3.50]


plt.rcParams["figure.autolayout"] = True

plt.plot(df.Year)

#importing csv file to extract data

plt.show()

Data=pd.read_csv("C:\\Users\\farha\\OneDrive\\Documents\\
Book.csv",encoding='latin1')

print(Data)

#analysing data with graphs-:

columns=["Competitors","Nations"]

df=pd.read_csv("C:\\Users\\farha\\OneDrive\\Documents\\
Data3.csv",usecols=columns,encoding='latin1')

print("content in csv file",df)

plt.rcParams["figure.figsize"] = [7, 3]

plt.rcParams["figure.autolayout"] = True

plt.plot(df.Competitors,df.Nations)

#importing csv file to extract data

plt.show()

BAR GRAPH
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#First to show full data-:
Data=pd.read_csv("C:\\Users\\farha\\OneDrive\\Documents\\
Book.csv",encoding='latin1')
print(Data)
#analysing data with graphs-:
import pandas as pd
from matplotlib import pyplot as plt
columns=["Year","Nations"]
df=pd.read_csv("C:\\Users\\farha\\OneDrive\\Desktop\\
Data6.csv",usecols=columns,encoding='latin1')
print("content in csv file",df)
plt.rcParams["figure.figsize"] = [7.00, 3.50]
plt.rcParams["figure.autolayout"] = True
x_axis=("Year")
y_axis=("Nations")
plt.bar(x_axis,y_axis,width=5,color="red")
#importing csv file to extract data
plt.show()
Data=pd.read_csv("C:\\Users\\farha\\OneDrive\\Documents\\
Book.csv",encoding='latin1')
print(Data)
#analysing data with graphs-:
import pandas as pd
from matplotlib import pyplot as plt
columns=["Compititors","Sports"]
df=pd.read_csv("C:\\Users\\farha\\OneDrive\\Desktop\\
Data7.csv",usecols=columns,encoding='latin1')
print("content in csv file",df)
plt.rcParams["figure.figsize"] = [7.00, 3.50]
plt.rcParams["figure.autolayout"] = True
x_axis=("Compititors")
y_axis=("Sports")
plt.bar(x_axis,y_axis,width=5,color="red")
#importing csv file to extract data
plt.show()
x_axis=[1473,1032,745,179,155,155,132,110,99,91]
y_axis=['China','Japan','South Korea','Iran','India','Kazakhastan','Thailand','North
Korea','Chinese Taipie','Indonesia']
plt.bar(x_axis,y_axis,width=5,color='red')
plt.show()
df=pd.read_csv("C:\\Users\\farha\\OneDrive\\Documents\\
Table2.csv",encoding='latin1')
df.plot(kind='line',color=['red','blue','yellow','green','black'])
plt.title=('Medal count')
plt.xlabel=['contries']
plt.ylabel=['Medals']
plt.show()

OUTPUTS-:
= RESTART: C:\Users\farha\AppData\Local\Programs\Python\Python311\
table.py
Edition Year Host city ... Sports Events Top-ranked team
0 I 1951 New Delhi ... 6.0 57.0 Japan (JPN)
1 II 1954 Manila ... 8.0 76.0 Japan (JPN)
2 III 1958 Tokyo ... 13.0 97.0 Japan (JPN)
3 IV 1962 Jakarta ... 13.0 88.0 Japan (JPN)
4 V 1966 Bangkok ... 14.0 143.0 Japan (JPN)
5 VI 1970 Bangkok ... 13.0 135.0 Japan (JPN)
6 VII 1974 Tehran ... 16.0 202.0 Japan (JPN)
7 VIII 1978 Bangkok ... 19.0 201.0 Japan (JPN)
8 IX 1982 New Delhi ... 21.0 147.0 China (CHN)
9 X 1986 Seoul ... 25.0 270.0 China (CHN)
10 XI 1990 Beijing ... 27.0 310.0 China (CHN)
11 XII 1994 Hiroshima ... 34.0 338.0 China (CHN)
12 XIII 1998 Bangkok ... 36.0 377.0 China (CHN)
13 XIV 2002 Busan ... 38.0 419.0 China (CHN)
14 XV 2006 Doha ... 39.0 424.0 China (CHN)
15 XVI 2010 Guangzhou ... 42.0 476.0 China (CHN)
16 XVII 2014 Incheon ... 37.0 439.0 China (CHN)
17 XVIII 2018 Jakarta and Palembang ... 46.0 465.0 China (CHN)
18 XIX 2022 Hangzhou ... NaN NaN NaN

[19 rows x 12 columns]


content in csv file Nations Competitors
0 11 489
1 18 970
2 16 1,820
3 12 1,460
4 16 1,945
5 NaN 2,400
6 19 3,010
7 NaN 3,842
8 23 3,411
9 22 4,839
10 36 6,122
11 42 6,828
12 41 6,554
13 44 7,711
14 45 9,520
15 NaN 9,704
16 NaN 9,501
17 NaN 11,300
18 Future event NaN

=== RESTART:
C:/Users/farha/AppData/Local/Programs/Python/Python311/result.py ==
content in csv file Sports Events
0 6 57
1 8 76
2 13 97
3 13 88
4 14 143
5 13 135
6 16 202
7 19 201
8 21 147
9 25 270
10 27 310
11 34 338
12 36 377
13 38 419
14 39 424
15 42 476
16 37 439
17 46 465
=== RESTART:
C:/Users/farha/AppData/Local/Programs/Python/Python311/result.py ==
content in csv file Year Top-ranked team
0 1951 Japan (JPN)
1 1954 Japan (JPN)
2 1958 Japan (JPN)
3 1962 Japan (JPN)
4 1966 Japan (JPN)
5 1970 Japan (JPN)
6 1974 Japan (JPN)
7 1978 Japan (JPN)
8 1982 China (CHN)
9 1986 China (CHN)
10 1990 China (CHN)
11 1994 China (CHN)
12 1998 China (CHN)
13 2002 China (CHN)
14 2006 China (CHN)
15 2010 China (CHN)
16 2014 China (CHN)
17 2018 China (CHN)

BAR GRAPH OUTPUT-:


=== RESTART:
C:/Users/farha/AppData/Local/Programs/Python/Python311/result.py ==
content in csv file Year Nation
0 1951 11
1 1954 18
2 1958 16
3 1962 12
4 1966 16
5 1970 NaN
6 1974 19
7 1978 NaN
8 1982 23
9 1986 22
10 1990 36
11 1994 42
12 1998 41
13 2002 44
14 2006 45
15 2010 NaN
16 2014 NaN
17 2018 NaN
=== RESTART:
C:/Users/farha/AppData/Local/Programs/Python/Python311/result.py ==
content in csv file Compititors Sports
489 6
970 8
1,820 13
1,460 13
1,945 14
2,400 13
3,010 16
3,842 19
3,411 21
4,839 25
6,122 27
6,828 34
6,554 36
7,711 38
9,520 39
9,704 42
9,501 37
11,300 46

GRAPHS-:
LINE GRAPH-:
1:Graph of no of Nations participanted and no. of participants…
2: Graph of sports and event took place.
3:Graph of medal count with respect to participants

BARGRAPH-:
1:Graph of Participants with respect to no. of sports-:
2: Graph of no of Nations participanted and no. of
participants…-:
3:Gold medal count-:

4:Silver medal count-:


REFERENCES
⮚ Class XII Textbook of Informatics Practices by
Preeti Arora.
⮚ https://ncrb.gov.in/sites/default/files/CII
%202020%20Volume%201.pdf

⮚ https://www.business-standard.com/article/
current-affairs/over-400-rise-in-cyber-crime-
cases-against-children-in-2020-ncrb-data-
121111400320_1.html

You might also like