SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
You need to create a Python program that implements a menu with the following choices: 1.
Display all students' names. 2. Display quizzes grades. 3. Display exams grades. 4. Display class
report. 5. Quit The names should be stored in a 1D list and grades in 2D lists. You can define
these as follows: names = ["Mohammad", "Ibrahim", "Hassan", "Mariam", "Fatima", "Jamila"]
begin{tabular}{l} #  grades =1Q1,Q2,03,ME,EE  hline end{tabular} [9,10,9.5,95,100],
[8,10,7.5,90,85], [9,10,9.9,80,75], [7,8,6.5,85,80], [8,8,8.4,77,88], [5,5,9.4,89,92],
When choice 4 is selected, the program should display And finally, when choice 5 is selected,
the program should terminate. If the user does not select choice 5, the program should repeat and
display the menu again. In addition, the program should accept the user input that is in [1,5].
Otherwise, it should report to the user that this input is invalid. Your program should use
functions wherever it is appropriate. For example, to display the menu, a user-defined function
can be implemented to do so, you can name it as dispMenu ( ) and so on. Moreover, to calculate
the final grade of any student, use the grading scale: Quizzes: 25% Midterm: 25% Final: 50%

Weitere ähnliche Inhalte

Mehr von amanfurnisher14

Mehr von amanfurnisher14 (9)

[Choose] begin{tabular}{l} hline Choose] Priapulida Phasmid.pdf
 [Choose] begin{tabular}{l} hline Choose]  Priapulida  Phasmid.pdf [Choose] begin{tabular}{l} hline Choose]  Priapulida  Phasmid.pdf
[Choose] begin{tabular}{l} hline Choose] Priapulida Phasmid.pdf
 
[Ch 7] JCNickel Corporation has issued zero-coupon corporate bonds wi.pdf
 [Ch 7] JCNickel Corporation has issued zero-coupon corporate bonds wi.pdf [Ch 7] JCNickel Corporation has issued zero-coupon corporate bonds wi.pdf
[Ch 7] JCNickel Corporation has issued zero-coupon corporate bonds wi.pdf
 
[15 Marks] Let H be a class of binary classifiers over a set Z. Let D.pdf
 [15 Marks] Let H be a class of binary classifiers over a set Z. Let D.pdf [15 Marks] Let H be a class of binary classifiers over a set Z. Let D.pdf
[15 Marks] Let H be a class of binary classifiers over a set Z. Let D.pdf
 
[5 Marks)] Specify a method to generate a random variable from the di.pdf
 [5 Marks)] Specify a method to generate a random variable from the di.pdf [5 Marks)] Specify a method to generate a random variable from the di.pdf
[5 Marks)] Specify a method to generate a random variable from the di.pdf
 
[6 marks ] b) Suppose host A sends some data to host D. What is the f.pdf
 [6 marks ] b) Suppose host A sends some data to host D. What is the f.pdf [6 marks ] b) Suppose host A sends some data to host D. What is the f.pdf
[6 marks ] b) Suppose host A sends some data to host D. What is the f.pdf
 
[10] for name, info in bg_diet.1tems () if S120 and DBO status - .pdf
 [10] for name, info in bg_diet.1tems () if S120 and DBO status - .pdf [10] for name, info in bg_diet.1tems () if S120 and DBO status - .pdf
[10] for name, info in bg_diet.1tems () if S120 and DBO status - .pdf
 
[ 50 points] Given X has the following distribution with parameter p..pdf
 [ 50 points] Given X has the following distribution with parameter p..pdf [ 50 points] Given X has the following distribution with parameter p..pdf
[ 50 points] Given X has the following distribution with parameter p..pdf
 
Zwiebels Cycles, Inc Balance Sheet as of December 31, 2022 (in thou.pdf
 Zwiebels Cycles, Inc Balance Sheet as of December 31, 2022 (in thou.pdf Zwiebels Cycles, Inc Balance Sheet as of December 31, 2022 (in thou.pdf
Zwiebels Cycles, Inc Balance Sheet as of December 31, 2022 (in thou.pdf
 
[ Choose ] The controller places her initials manually on the purchas.pdf
 [ Choose ] The controller places her initials manually on the purchas.pdf [ Choose ] The controller places her initials manually on the purchas.pdf
[ Choose ] The controller places her initials manually on the purchas.pdf
 

Kürzlich hochgeladen

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Kürzlich hochgeladen (20)

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

You need to create a Python program that implements a menu with the f.pdf

  • 1. You need to create a Python program that implements a menu with the following choices: 1. Display all students' names. 2. Display quizzes grades. 3. Display exams grades. 4. Display class report. 5. Quit The names should be stored in a 1D list and grades in 2D lists. You can define these as follows: names = ["Mohammad", "Ibrahim", "Hassan", "Mariam", "Fatima", "Jamila"] begin{tabular}{l} # grades =1Q1,Q2,03,ME,EE hline end{tabular} [9,10,9.5,95,100], [8,10,7.5,90,85], [9,10,9.9,80,75], [7,8,6.5,85,80], [8,8,8.4,77,88], [5,5,9.4,89,92], When choice 4 is selected, the program should display And finally, when choice 5 is selected, the program should terminate. If the user does not select choice 5, the program should repeat and display the menu again. In addition, the program should accept the user input that is in [1,5]. Otherwise, it should report to the user that this input is invalid. Your program should use functions wherever it is appropriate. For example, to display the menu, a user-defined function can be implemented to do so, you can name it as dispMenu ( ) and so on. Moreover, to calculate the final grade of any student, use the grading scale: Quizzes: 25% Midterm: 25% Final: 50%