write a python program to maintain the Student enrollment in to a class and points scored...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
Here is a Python program based on the requirements provided python Helper ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Reviewing your corporation's statement of cash flows: what do you learn about your SEC 10-K company as you view the four financial statements together? Use course resources to explain the purpose of...
-
A heating section consists of a 10 inch diameter duct which houses a 8 kW electric resistance heater. Air enters the heating section at 14.7 psia, 40oF and 35% relative humidity at a velocity of 21...
-
Use the step-by-step method to find io(t) for t > 0 in the circuit in Fig. P6.28. t=0 200 4 mA o t)
-
Solve the given systems of equations algebraically. x + 2y + z = 2 3x - 6y + 2z = 2 2x z = 8 -
-
Electrons pass through a 200 -nm-diameter circular aperture, \(\mathbb{N T}\) forming a diffraction pattern on a detector \(1.2 \mathrm{~m}\) behind the aperture. What is the kinetic energy of the...
-
Curtain Distributing Company completed these merchandising transactions in the month of April. At the beginning of April, the ledger of Curtain showed Cash of $9,000 and Common Stock of $9,000. Apr....
-
How does the normalization process adhere to the theoretical framework of relational database design by systematically decomposing complex tables into smaller, well-defined entities while preserving...
-
Allen Blay owns 100% of the stock in AB Corporation, organized ten years ago in California. AB operates a foreign branch in Country A. In the current yea r, AB reports $500,000 of taxable income from...
-
Case Undue Influence Hodge v. Shea 168 S.E.2d 82 (S.C. 1969) Facts: The defendant had been plaintiff's (Dr. Hodge's) patient for several years. He was 75, an inebriate of long standing, and was...
-
Crystal Lake, Inc., has a total debt ratio of 0.23. Note: once you know the total debt ratio, you automatically also know the total equity ratio, as the total debt ratio + the total equity ratio =...
-
Prove that 2" < n! for all n 4, n e N. Prove that 2n - 3 2-2 for all n 5, n N.
-
Canadian Tire Corporation, Limited (Canadian Tire) is a family of companies that includes a retail segment and a financial services division, among others. The retail business is led by Canadian...
-
Bryan, a business development representative at Strong Co., took her client out for a dinner that cost $131.50 before taxes. If she paid taxes of $20.38 on the meal, calculate the tax rate?
-
Examine the pivotal function of device drivers within operating systems, elucidating their role in mediating communication between hardware peripherals and the kernel, while also exploring the...
-
Teresa Messi owns a famous brewery, Cool Beer Ltd. in the city of Williams Lake, British Columbia. Teresa would like to expand to markets in Argentina. List and describe 2 of the 5 strategic options...
-
What are the main distinctions between the different schools of legal interpretation?
-
Frederick (Freddy) Freeweights (age 42) owns and operates a health club called ''Treadmills West.'' The business is located at 4321 Arnold Street, Alpine, CA 91901. Freddy had the following income...
-
On September 14, 2012, Jay purchased a passenger automobile that is used 75 percent in his accounting business. The automobile has a basis for depreciation purposes of $35,000, and Jay uses the...
-
Professor Patricia (Patty) Pate is retired from the PalmSprings Culinary Arts Academy (PSCAA). She is a single taxpayer and is 68 years old. Patty lives at 98 Colander Street, Henderson, NV 89052....
-
Fine Furniture Ltd had a balance in its Work in Process Inventory account on 1 October 2019 of $13 600 made up of two jobs: Job 730, $6400; and Job 731, $7200. At the end of October, costs assigned...
-
Refer to the latest financial report of JB Hi-Fi Limited on its website, www.jbhifi.com.au, and answer the following questions. 1. Is it likely that JB Hi-Fi Limited would have to confront such...
-
Imelda Instruments Ltd manufactures two products: missile range instruments and space pressure gauges. During January, 53 range instruments and 360 pressure gauges were produced, and overhead costs...
Study smarter with the SolutionInn App