Write a python program that stores current grades in a dictionary, with course codes as keys and percent grades as values. Start with an empty dictionary and then use a while loop to enable input of course codes and percent grades from the keyboard. Enter data for at least five courses. After entering the data, use a for loop and the keys to show the current status of all courses. This same loop should include code that enables determination of the worst course and the average of all courses. Both of these findings should be printed when the loop ends. The worst course should be dropped and reported. This being done, the program should use another loop and the items method to display the revised courses and grades and report the revised term average.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

Write a python program that stores current grades in a dictionary, with course codes as keys and percent grades as values. Start with an empty dictionary and then use a while loop to enable input of course codes and percent grades from the keyboard. Enter data for at least five courses. After entering the data, use a for loop and the keys to show the current status of all courses. This same loop should include code that enables determination of the worst course and the average of all courses. Both of these findings should be printed when the loop ends. The worst course should be dropped and reported. This being done, the program should use another loop and the items method to display the revised courses and grades and report the revised term average.

Input course code or Enter to quit COP1000
Grade in COP1000 as % 92
Input course code or Enter to quit MAT1000
Grade in MAT1000 as % 80
Input course code or Enter to quit PHY1000
Grade in PHY1000 as % 64
Input course code or Enter to quit ETH1000
Grade in ETH1000 as % 85
Input course code or Enter to quit COM1000
Grade in COM1000 as % 78
Input course code or Enter to quit
Grade in COP1000 is 92%
Grade in MAT1000 is 80%
Grade in PHY1000 is 64%
Grade in ETH1000 is 85%
Grade in COM1000 is 78%
Current term average is 79.8%
Worst course is PHY1000 :
64%
Dropped PHY1000
Here are my revised grades...
Grade in 92 is 92%
Grade in 80 is 80%
Grade in 85 is 85%
Grade in 78 is 78%
Revised term average is 83.8%
Transcribed Image Text:Input course code or Enter to quit COP1000 Grade in COP1000 as % 92 Input course code or Enter to quit MAT1000 Grade in MAT1000 as % 80 Input course code or Enter to quit PHY1000 Grade in PHY1000 as % 64 Input course code or Enter to quit ETH1000 Grade in ETH1000 as % 85 Input course code or Enter to quit COM1000 Grade in COM1000 as % 78 Input course code or Enter to quit Grade in COP1000 is 92% Grade in MAT1000 is 80% Grade in PHY1000 is 64% Grade in ETH1000 is 85% Grade in COM1000 is 78% Current term average is 79.8% Worst course is PHY1000 : 64% Dropped PHY1000 Here are my revised grades... Grade in 92 is 92% Grade in 80 is 80% Grade in 85 is 85% Grade in 78 is 78% Revised term average is 83.8%
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY