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
-
+y B A +x Three students converge on the last textbook in the store. All three grab it and begin to pull in the directions shown in the above figure. Student A exerts a force of 42.10 N, student B...
-
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...
-
The Sealed Air leveraged restructuring is described in the Chapter 18 beyond the Page feature. Outline the similarities and differences between the RJR Nabisco LBO and the Sealed Air restructuring....
-
Discuss some of the price segmentation strategies that can be used by hospitality and tourism firms.
-
Accountants understand their jobs very well. Programmers also understand their jobs. Unfortunately, accountants are rarely programmers and programmers are rarely accountants. While an accountant does...
-
Reitmans (Canada) Limited is a leading Canadian retailer that operates more than 900 stores under the Reitmans, Smart Set, RW & Co., Thyme Maternity, Penningtons, and Addition Elle banners. The...
-
Find the degree measure that corresponds to the given radian measure. 100 O a)-70.7 Ob)-22.5 Oc) -1440
-
For this assignment, you will select an alternative consumer subculture to explore and analyze. Although we all belong to multiple subcultures, this assignment requires that you choose a subculture...
-
3. A root of a function is a point where the function crosses the r-axis: f(r) = 0. Roots are so useful that is a good idea to have a general computational method for finding them. One such procedure...
-
To save on future home insurance costs, you need a new roof and a burglar alarm system that will cost $10,000 five years from now. You can earn 3 percent on your savings. How much should you deposit...
-
Organizational behavior Define organizational culture, and discuss the competing values cultural framework. Explain the importance of a fit between individual values and organizational culture. (250...
-
Examine and discuss the observable patterns, designs, and strategies seen in the business model. Integrate metaphors (Morgan's) and framing (Bolman & Deal) into the discussion of the...
-
Go to https://ahima.org/careermap and explore the emerging careers in revenue cycle management that are available to you. Choose one and explain what the job is, what technology you anticipate...
-
Yuqi's Yo-Yo's Inc. has a September 30, 2022 year end and issues a $100,000 bond payable bearing interest at 4% for 92. At the time the bond was issued the market rate of interest was 6%. The bond...
-
Both Sigmund Freud and B.F. Skinner believed that we are controlled by strong forces. Freud believed that our behavior is influenced by unconscious forces within us. Skinner believed that we are...
-
After looking at the resources, explain what a spirit image is. Why might looking at a god and/or a human in terms of their spirit be helpful if you want to eliminate some of the divisions between...
-
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....
-
The systematic risk principle has an important implication, which is that a. b. C. d. systematic risk is preferred to unsystematic risk systematic risk is the only risk that can be reduced by...
-
A financial market's security market line (SML) describes a. b. PSJP C. d. the relationship between systematic risk and expected returns the relationship between unsystematic risk and expected...
-
The systematic risk of a stock is measured by its a. b. C. d. beta coefficient correlation coefficient retum standard deviation retum variance
Study smarter with the SolutionInn App