Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a python program to maintain the Student enrollment in to a class and points scored by him in a class. You need to

write a python program to maintain the Student enrollment in to a class and points scored by him in a class. 7. If the user's choice is 5: a. Terminate the program by breaking out of the loop. Hints: 1. To create a

write a python program to maintain the Student enrollment in to a class and points scored by him in a class. You need to do it by using a List of Tuples. What you need to do? 1. You need to repeatedly display this menu to the user. 1. Enroll into Class 2. Drop from Class 3. Calculate average of grades for a course 4. View all Students 5. Exit 2. Ask the user to input his choice. 3. If the user's choice is 1: a. Ask him to input Students name (String), Course Name (String), Score (Float). b. Add the information provided to your list. 4. If the user's choice is 2: a. Print the Students (items) in the list. b. Ask the user to input the student entry number in the list to drop c. Delete that element from the list. 5. If the user's choice is 3: a. Ask the user to input the course name. b. Calculate the average score of all the students in that course. Check for the divisibility by zero error (0/0). c. Print the average score. 6. If the user's choice is 4: a. Print all the elements in the list. 7. If the user's choice is 5: a. Terminate the program by breaking out of the loop. Hints: 1. To create a list of tuples, add the elements to the list in this format. Listname.append((valuel, value2, value3)) 2. To calculate the average score of students in a course: a. You will need two variables, one for holding the sum of the scores and one for determining the number of students in that course. b. Print average only when there is at least one student in the course. Else, print an error message.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Here is a Python program based on the requirements provided python Helper ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions