program9_1.py Write a 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...



program9_1.py

Write a program that stores current grades in a dictionary, withcourse codes as keys andpercent grades as values. Start with anempty dictionary and thenuse a while loop to enable input of course codes and percent gradesfrom the keyboard. Enter data forat least five courses. After entering the data, use afor loop andthe keys to show the current status of all courses. This same loop should include code that enables determination of theworst course and theaverage of all courses. Both of these findings should be printed when the loop ends. Theworst course should bedropped and reported. This being done, the program should useanother loop and theitems method to display the revised courses and grades and report therevised term average.
Example Output


items method to display the revised courses and grades and report the revised term av<br>Example Output<br>Input course code or Enter to quit COP1000<br>Grade in COP1000 as i 92<br>Input course code or Enter to quit MAT1000<br>Grade in MAT1000 as i 80<br>Input course code or Enter to quit PHY1000<br>Grade in PHY1000 as : 64<br>Input course code or Enter to quit ETH1000<br>Grade in ETH1000 as 85<br>Input course code or Enter to quit COM1000<br>Grade in COM1000 as 78<br>Input course code or Enter to quit<br>Grade in COP1000 is 92%<br>Grade in MAT1000 is 808<br>Grade in PHY1000 is 64<br>Grade in ETH1000 is 85%<br>Grade in COM1000 is 788<br>Current term average is 79.8%<br>Worst course is PHY1000 : 64%<br>Dropped PHY1000<br>Here are my revised grades...<br>Grade in 92 is 928<br>Grade in 80 is 80%<br>Grade in 85 is 85%<br>Grade in 78 is 788<br>Revised term average is 83.88<br>Recheck the requirements and then submit.<br>

Extracted text: items method to display the revised courses and grades and report the revised term av Example Output Input course code or Enter to quit COP1000 Grade in COP1000 as i 92 Input course code or Enter to quit MAT1000 Grade in MAT1000 as i 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 808 Grade in PHY1000 is 64 Grade in ETH1000 is 85% Grade in COM1000 is 788 Current term average is 79.8% Worst course is PHY1000 : 64% Dropped PHY1000 Here are my revised grades... Grade in 92 is 928 Grade in 80 is 80% Grade in 85 is 85% Grade in 78 is 788 Revised term average is 83.88 Recheck the requirements and then submit.
Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here