Question
Write a program that asks the user for a student name and asks for grades until the user enters a non-number input, it should then
Write a program that asks the user for a student name and asks for grades until the user enters a non-number input, it should then ask if the user wants to enter another student, and keep doing the process until the user stops adding students.
The students must be stored in a dictionary with their names as the keys and grades in a list.
The program should then iterate over the dictionary elements producing the min, max, and mean of their grades.
Example Execution: Enter a student name: "MaryJo" Enter a Grade for MaryJo: 88 Enter a Grade for MaryJo: 71 Enter a Grade for MaryJo: 90 Enter a Grade for MaryJo: done Do you want to add another student: yes Enter a student name: "Jim" Enter a Grade for Jim: 85 Enter a Grade for Jim: 89 Enter a Grade for Jim: no Do you want to add another student: No Student Stats: MaryJo (71 -90): 83 Jim (85 -89): 87
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started