0% found this document useful (0 votes)
36 views31 pages

Vansh Garg Project File

Uploaded by

vanshgarg482
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)
36 views31 pages

Vansh Garg Project File

Uploaded by

vanshgarg482
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/ 31

LOVELY PUBLIC SR. SEC.

SCHOOL
INFORMATICS PRACTICES
(065)
PROJECTFILE
(2022-23)

Made By :- VANSH GARG


Class :- 12TH G
Roll number :- 14604629
PAGE \* MERGEFORMAT 2
ACKNOWLEDGEMENT
I would like to convey my heartful thanks to Principal ma'am
Dr. Bhawana Malik for providing all the necessary guidance
and infrastructure facilities. Next I would like to thank Ms.
Poonam Mehrotra, my Informatics Practices teacher for her
help and guidance in the completion of my project work and
making it a success. She gave me valuable suggestions during
the making of project. At last I would like to thank my group
member for his/ her support and assistance.
This report is submitted as a part of Practical Examination
included in the curriculum of CBSE for All India Senior
Secondary Certificate Examination to be held in the year
2023.

Certificate

PAGE \* MERGEFORMAT 2
This is to certify that BHAVYARAJ KAPOOR of Class 12th G
of Lovely Public Senior Secondary School, Priyadarshini
Vihar has completed hisproject titled HUMAN
TRAFFICKING under my supervision and he/she has taken
proper care and shown keen interest in accomplishing this
project. He has successfully completed the project work in
Informatics Practices (065) upto my satisfaction. All the
guidelines issued by CBSE have been followed in making of
this project.

_________________________
Ms. Poonam Mehrotra
PGT Informatics Practices

PAGE \* MERGEFORMAT 2
Index
S. No. Content Page No.
1. Project Title 5
2. Synopsis 6
3. Front end and Back End Used 7
4. CSV Files Used 8
5. Coding of the Program 9
6. Output Screenshots 16
7. Bibliography 30

Project title
PAGE \* MERGEFORMAT 2
(HUMAN TRAFFICKING)

Synopsis
PAGE \* MERGEFORMAT 2
Human Trafficking, also called trafficking in persons,
form of modern-day slavery involving the illegal transport of
individuals by force or deception for the purpose of labour,
sexual exploitation, or activities in which others benefit
financially. Human trafficking is a global problem affecting
people of all ages. It is estimated that approximately 1,000,000
people are trafficked each year globally and that between
20,000 and 50,000 are trafficked into the United States, which
is one of the largest destinations for victims of the sex-
trafficking trade.
Human traffickers often create transnational routes for
transporting migrants who are driven by unfavourable living
conditions to seek the services of a smuggler. Human
trafficking usually starts in origin countries—
namely, Southeast Asia, eastern Europe, and sub-
Saharan Africa—where recruiters seek migrants through
various mediums such as the Internet, employment agencies,
the media, and local contacts. Middlemen who recruit from
within the origin country commonly share the cultural
background of those migrating. Migrants view the services of a
smuggler as an opportunity to move from impoverished
conditions in their home countries to more stable,
developed environments.

Front end and back end used


PAGE \* MERGEFORMAT 2
Front end :
Front-End is the development environment where we
write the program code to develop the interface so that the
user can communicate with the system. I have taken
Python IDLE to develop the project.
Back end :
Back-End refers to the database which is working in
behind of front-end. It is used to store data. I have taken
CSV files for the storage, modification and retrieval of data
The software used for developing project work is as
specified by CBSE and it is freely available as free and open
source.(FOSS)

CSV FILES USED

PAGE \* MERGEFORMAT 2
Coding of the Program
import pandas as pd

PAGE \* MERGEFORMAT 2
import matplotlib.pyplot as plt

human=pd.read_csv("humantraf.csv",index_col=0)

while(True):

print("\n\n\t\t\t---- Main Menu ----\n")

print("1. Fetch data")

print("2. Dataframe Statistics")

print("3. Display Records")

print("4. Working on Records")

print("5. Search specific row/column")

print("6. Data Visualization")

print("7. save the changes done in csv file")

print("8. Exit")

ch=int(input("\nEnter your choice here = "))

if ch==1:

human=pd.read_csv("humantraf.csv",index_col=0)

print("\ndata fetched successfully\n")

elif ch==2:

while (True):

print("\n\n\t\t\t~~~~ Dataframe Statistics Menu ~~~~\n")

print("1. Display the Transpose")

print("2. Display all column names")

print("3. Display the indexes")

print("4. Display the shape")

print("5. Display the dimension")

print("6. Display the data types of all columns")

PAGE \* MERGEFORMAT 2
print("7. Display the size")

print("8. Exit")

ch2=int(input("\nEnter your choice here = "))

if ch2==1:

print(human.T)

elif ch2==2:

print(human.columns)

elif ch2==3:

print(human.index)

elif ch2==4:

print(human.shape)

elif ch2==5:

print(human.ndim)

elif ch2==6:

print(human.dtypes)

elif ch2==7:

print(human.size)

elif ch2==8:

break

else:

print("\nyou have entered invalid option")

elif ch==3:

while(True):

print("\n\n\t\t\t~~~~ Display Records Menu ~~~~\n")

print("1. Top 5 Records")

print("2. Bottom 5 Records")

print("3. Specific number of records from the top")

print("4. Specific number of records from the bottom")


PAGE \* MERGEFORMAT 2
print("5. Details of a specific State")

print("6. Exit")

ch3=int(input("\nEnter your choice here = "))

if ch3==1:

print(human.head())

elif ch3==2:

print(human.tail())

elif ch3==3:

n=int(input("\nEnter how many records you want to display from the top = "))

print(human.head(n))

elif ch3==4:

n=int(input("\nEnter how many records you want to display from the bottom = "))

print(human.tail(n))

elif ch3==5:

st=input("\nEnter the state name for which you want to see the details = ")

A=st.upper()

print(human.loc[A])

elif ch3==6:

break

else:

print("you have entered invalid option")

elif ch==4:

while(True):

print("\n\n\t\t\t~~~~ Working on Records Menu ~~~~\n")

print("1. Insert a specific state Record")

print("2. Delete a specific state Record")

print("3. Update a specific state Record")

print("4. Exit")
PAGE \* MERGEFORMAT 2
ch4=int(input("\nEnter your choice here = "))

if ch4==1:

a=input("\nEnter state name here = ").upper()

b=int(input("Enter number of males below 18 yrs = "))

c=int(input("Enter number of females below 18 yrs = "))

d=int(input("Enter number of males above 18 yrs = "))

e=int(input("Enter number of females above 18 yrs = "))

human.loc[a]=[b,c,d,e]

print("Data successfully inserted")

elif ch4==2:

a=input("Enter state name whose data needs to be deleted = ").upper()

human.drop([a],inplace=True)

print("Data successfully deleted")

elif ch4==3:

a=input("Enter state name whose data needs to be updated = ").upper()

b=int(input("Enter new number of males below 18 yrs = "))

c=int(input("Enter new number of females below 18 yrs = "))

d=int(input("Enter new number of males above 18 yrs = "))

e=int(input("Enter new number of females above 18 yrs = "))

human.loc[a]=[b,c,d,e]

print("Data successfully updated")

elif ch4==4:

break

else:

print("you have entered invalid option")

elif ch==5:

while(True):
PAGE \* MERGEFORMAT 2
print("\n\n\t\t\t~~~~ Search Menu ~~~~\n")

print("1. Search for the details of a specific state")

print("2. Search details of a specific column")

print("3. Exit")

ch6=int(input("\nEnter your choice here = "))

if ch6==1:

st=input("\nEnter the name of the city whose details you want to see = ").upper()

print(human.loc[st])

elif ch6==2:

col=input("\nEnter column name whose details you want to see = ")

print(human[col])

elif ch6==3:

break

else:

print("you have entered invalid option")

elif ch==6:

while(True):

print("\n\n\t\t\t~~~~ Data Visualization Menu ~~~~\n")

print("1. Line Plot")

print("2. Vertical Bar Plot")

print("3. Horizontal Bar Plot")

print("4. Histogram")

print("5. Exit")

ch7=int(input("\nEnter your choice here = "))

if ch7==1:

n=int(input("\nHow many states from the top you want to plot? = "))

df=human.head(n)

mb=df['MBelow18']
PAGE \* MERGEFORMAT 2
fb=df['FBelow18']

ma=df['MAbove18']

fa=df['FAbove18']

s=df.index

plt.plot(s,mb,label="Males below 18")

plt.plot(s,fb,label="Females below 18")

plt.plot(s,ma,label="Males Above 18")

plt.plot(s,fa,label="Females Above 18")

plt.title("Line Graph representing statewise numbers")

plt.xlabel("STATES")

plt.ylabel("COUNT OF MALES & FEMALES")

plt.xticks(rotation=30)

plt.legend()

plt.grid(True)

plt.show()

elif ch7==2:

n=int(input("\nHow many states from the top you want to plot? = "))

df=human.head(n)

df.plot(kind="bar")

plt.title("Bar Graph representing statewise numbers")

plt.xlabel("STATES")

plt.ylabel("COUNT OF MALES & FEMALES")

plt.show()

elif ch7==3:

n=int(input("\nHow many states from the top you want to plot? = "))

df=human.head(n)

df.plot(kind="barh")

plt.title("Horizontal Bar Graph representing statewise numbers")


PAGE \* MERGEFORMAT 2
plt.xlabel("COUNT OF MALES & FEMALES")

plt.ylabel("STATES")

plt.show()

elif ch7==4:

n=int(input("\nHow many states from the top you want to plot? = "))

df=human.head(n)

df.plot(kind="hist")

plt.title("Bar Graph representing statewise numbers")

plt.xlabel("STATES")

plt.ylabel("COUNT OF MALES & FEMALES")

plt.show()

elif ch7==5:

break

else:

print("you have entered invalid option")

elif ch==8:

break

elif ch == 7:

human.to_csv("humantraf.csv")

print("\nchanges successfully done in csv file\n")

print(human)

else:

print("you have entered invalid option")

PAGE \* MERGEFORMAT 2
Output Screenshots

OUTPUTS
1. VIEW OF MAIN MENU

PAGE \* MERGEFORMAT 2
2. VIEW OF OPTION 1

PAGE \* MERGEFORMAT 2
3. VIEW OF OPTION 2

SUB MENU OPTION 1

OPTION 2 OPTION 3

PAGE \* MERGEFORMAT 2
OPTION 4 OPTION 5

OPTION 6 OPTION 7

PAGE \* MERGEFORMAT 2
4. VIEW OF OPTION 3

SUB MENU OPTION 1

OPTION 2 OPTION 3

PAGE \* MERGEFORMAT 2
OPTION 4 OPTION 5

PAGE \* MERGEFORMAT 2
5. VIEW OF OPTION 4

SUB MENU OPTION 1

OPTION 2 OPTION 3

PAGE \* MERGEFORMAT 2
6. VIEW OF OPTION 5

SUB MENU OPTION 1

OPTION 2

PAGE \* MERGEFORMAT 2
PAGE \* MERGEFORMAT 2
7. VIEW OF OPTION 6

SUB MENU

OPTION 1

PAGE \* MERGEFORMAT 2
OPTION 2

OPTION 3

PAGE \* MERGEFORMAT 2
OPTION 4

PAGE \* MERGEFORMAT 2
8. VIEW OF OPTION 7

PAGE \* MERGEFORMAT 2
9. TERMINATION OF CODE

PAGE \* MERGEFORMAT 2
Bibliography

 Informatics practices with Python (Preeti Arora)


 Informatics practices with Python (Sumita Arora)
 Informatics practices (NCERT – 2021)
 Website: www.python.org
 Online Classes and guidance by our Informatics Practices
teacher.

PAGE \* MERGEFORMAT 2
Thank
You

PAGE \* MERGEFORMAT 2

You might also like