Class 12 Informatics Practices IP Project On CBSE Result Statistics
Class 12 Informatics Practices IP Project On CBSE Result Statistics
JOSEPH’S SCHOOL
SHAKTINAGAR
Session 2023-24
INFORMATICS PRACTICES
PROJECT
ON
CBSE Results Statistics Class X – 2022
SUBMITTED BY:
PUSHPENDRA
CLASS: XII A
BOARD ROLL NUMBER:
➢Acknowledgement
➢Certificate
➢Introduction
➢Objective
➢Software and Hardware Requirements
➢Theoretical Concepts Applied
➢Python Code
➢Output
➢Conclusion
➢Bibliography
ACKNOWLEDGEMENT
Date : Pushpendra
December 5, 2023 12th A
Roll No. : 25
Board Roll No.
CERTIFICATE
• Jupyter (Anaconda 3)
• MS Excel 2019 for data storage
THEORETICAL CONCEPTS
IMPLEMENTED
df = pd.read_csv("C:\\Users\\Tony\\Downloads\\Class10-2022.csv", header=0)
def mainmenu():
print('\n')
print("--x-"*40)
print("--MAIN MENU--:")
print("1. Display the DataFrame")
print("2. Display information about the DataFrame")
print("3. Display information about selected region")
print("4. Display a graph of the total number of \
students registered and appeared for the exam")
print("5. Display a graph of the number of students registered\
and appeared from different types of schools")
print("6. Display the data of a region in form of a bar graph")
print("7. Display the number of registered/appeared/passed\
students in form of a bar graph")
print("0. Exit\n")
print("==="*40)
print(" WELCOME!!! ")
print(" CBSE Result Statistics Class X - 2022 ")
print("==="*40)
while True:
mainmenu()
choice = input("Enter your choice: ")
if choice == "1":
print("You selected to Display the DataFrame")
print(df)
plt.figure(figsize=(15,8))
plt.bar(x, regd, width = 0.3, label ='Rgistered')
plt.bar(x+0.3, appd, width = 0.3, label ='Appeared')
plt.bar(x+0.6, passed, width = 0.3, label ='Passed')
plt.xlabel('Region')
plt.ylabel('Number of Students')
plt.title('Number of Students Registered and Appeared')
plt.xticks(x+0.3, reg, rotation='vertical')
plt.legend()
plt.show()
if col in range(1,8):
colm = options[col]
plt.figure(figsize=(15,8))
plt.bar(x, regd, width = 0.3, label ='Rgistered')
plt.bar(x+0.3, appd, width = 0.3, label ='Appeared')
plt.bar(x+0.6, passed, width = 0.3, label ='Passed')
plt.xlabel('Region')
plt.ylabel('Number of Students')
plt.title('Number of Students Registered and Appeared')
plt.xticks(x+0.3, reg, rotation='vertical')
plt.legend()
plt.show()
else:
print("Invalid choice. Please enter a valid option")
for i in range(len(reg)):
print(i,reg[i])
print("Select the region")
code = int(input("Enter the code of the region: "))
if code in range(1,17):
regn = reg[code]
plt.figure(figsize=(15,8))
plt.bar(x,regis, width = 0.3, label = f'{regn} Registered')
plt.bar(x+0.3, appear, width = 0.3, label = f'{regn} Appeared')
plt.bar(x+0.6, passed1, width = 0.3, label = f'{regn} Passed')
plt.title(f'Number of students in {regn} by school type')
plt.xlabel("School type")
plt.ylabel("Number of school")
plt.xticks(x+0.3, types)
plt.legend()
plt.show()
else:
print("Invalid choice. Please enter a valid option")
if code in range(1,4):
status = options[code]
stat = df[df['Type'] == status]["TOTAL"]
plt.figure(figsize=(15,8))
pl elif choice == "0":
👋
print("\nExiting the program. \nThank you \nHave a nice day
\nGoodbye! ")
😊 \
print("==="*40)
break
else:
print("Invalid choice. Please enter a valid option.")
Thank
you