Professional Documents
Culture Documents
Informatics Practices Project 12 New
Informatics Practices Project 12 New
Informatics Practices Project 12 New
PROJECT
DEVELOPED BY:
TEAM MEMBERS:
1.KASHISH SINGH
2.SURYA UPPAL
3.SAMPANN KHANNA
Teacher’s signature
ACKNOWLEGDEMENT
The first case of COVID-19 in India, which originated from China, was
reported on 30 January 2020. India currently has the largest number of
confirmed cases in Asia and has the second-highest number of
confirmed cases in the world after the United States.
def display_graphs(image_paths):
num_images = len(image_paths)
plt.tight_layout()
plt.show()
def main():
while True:
print("Menu:")
print("1. Worst affected states from Covid-19 in
India")
print("2. Least affected states from Covid-19 in
India")
print("3. Deaths in each age group due to Covid-19")
print("4. Deaths in each age group in male and female
due to Covid-19")
print("5. Covid-19 test conducted by different
Countries in the World")
print("0. Exit")
if choice == '1':
display_graphs([os.path.join(base_path,
'bar1.jpg')])
elif choice == '2':
display_graphs([os.path.join(base_path,
'bar2.jpg')])
elif choice == '3':
display_graphs([os.path.join(base_path,
'bar3.jpg')])
elif choice == '4':
display_graphs([os.path.join(base_path,
'bar4.jpg')])
elif choice == '5':
display_graphs([os.path.join(base_path,
'bar5.jpg')])
elif choice == '0':
break
else:
print("Invalid choice. Please select a valid
option.")
if __name__ == "__main__":
main()
OPTION 1:
Menu:
1. Worst affected states from Covid-19 in India
2. Least affected states from Covid-19 in India
3. Deaths in each age group due to Covid-19
4. Deaths in each age group in male and female due to
Covid-19
5. Covid-19 test conducted by different Countries in
the World
0. Exit
Enter your choice: 1
OUTPUT:
OPTION 2:
Menu:
1. Worst affected states from Covid-19 in India
2. Least affected states from Covid-19 in India
3. Deaths in each age group due to Covid-19
4. Deaths in each age group in male and female due to
Covid-19
5. Covid-19 test conducted by different Countries in
the World
0. Exit
Enter your choice: 2
OUTPUT:
OPTION 3:
Menu:
1. Worst affected states from Covid-19 in India
2. Least affected states from Covid-19 in India
3. Deaths in each age group due to Covid-19
4. Deaths in each age group in male and female due to
Covid-19
5. Covid-19 test conducted by different Countries in
the World
0. Exit
Enter your choice: 3
OUTPUT:
OPTION 4:
Menu:
1. Worst affected states from Covid-19 in India
2. Least affected states from Covid-19 in India
3. Deaths in each age group due to Covid-19
4. Deaths in each age group in male and female due to
Covid-19
5. Covid-19 test conducted by different Countries in
the World
0. Exit
Enter your choice: 4
OUTPUT:
OPTION 5:
Menu:
1. Worst affected states from Covid-19 in India
2. Least affected states from Covid-19 in India
3. Deaths in each age group due to Covid-19
4. Deaths in each age group in male and female due to
Covid-19
5. Covid-19 test conducted by different Countries in
the World
0. Exit
Enter your choice: 5
OUTPUT:
Worst affected states from
Covid-19 in India
CSV
PROGRAM 1
CSV
PROGRAM 2
Deaths caused in each age groups is shown below through a line graph
as at 2nd September, 2020.
CSV
PROGRAM 3
CSV
PROGRAM 4
CSV
PROGRAM 5
www.google.com/Python project
www.wikipedia.com/Python
https://indianexpress.com/
•https://www.statista.com