Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 3

blur-text-image

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

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

Question 1 (a2) What is the reaction force Dx in [N]?

Answered: 1 week ago