with pseudocode Write a program that uses a dictionary to record five courses and their current grades. Start with an empty dictionary and then use a loop and keyboard input to specify the course names as keys and numeric grades as values. After all five courses have been entered, use another loop and the items() method to display the course names and grades in a table, nicely formatted as you see fit with an f-string. This second loop should also determine the course name and grade of the course with the lowest grade. Report this course name and grade when the loop ends and then delete (drop) that course from the dictionary. If math is one of the courses, add 3 points to the math grade. Otherwise, report that math is not in the dictionary. In one final loop that doesn't use the items() method, display the updated courses and grades again in a table. This final loop should also determine the total of all grades so the term average accurate to one decimal place can be printed after it ends.

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

This is Python - Chapter 9 

 

with  pseudocode

Write a program that uses a dictionary to record five courses and their current grades. Start with an empty dictionary and then use a loop and keyboard input to specify the course names as keys and numeric grades as values. After all five courses have been entered, use another loop and the items() method to display the course names and grades in a table, nicely formatted as you see fit with an f-string. This second loop should also determine the course name and grade of the course with the lowest gradeReport this course name and grade when the loop ends and then delete (drop) that course from the dictionary. If math is one of the courses, add 3 points to the math grade. Otherwise, report that math is not in the dictionary. In one final loop that doesn't use the items() method, display the updated courses and grades again in a table. This final loop should also determine the total of all grades so the term average accurate to one decimal place can be printed after it ends.

Name one of your FIVE courses ethics
Now enter your current average in that course 90
Name one of your FIVE courses speech
Now enter your current average in that course 92
Name one of your FIVE courses chem
Now enter your current average in that course 74
Name one of your FIVE courses math
Now enter your current average in that course 82
Name one of your FIVE cCourses comp
Now enter your current average in that course 85
Here are my courses and grades
ethics
90
speech
92
chem
74
math
82
comp
85
I am dropping chem at 74%
Woo Hoo! My math grade went up!
Here are my revised courses and grades
ethics
90
speech
92
math
85
comp
85
My average this term is 88.0%
Transcribed Image Text:Name one of your FIVE courses ethics Now enter your current average in that course 90 Name one of your FIVE courses speech Now enter your current average in that course 92 Name one of your FIVE courses chem Now enter your current average in that course 74 Name one of your FIVE courses math Now enter your current average in that course 82 Name one of your FIVE cCourses comp Now enter your current average in that course 85 Here are my courses and grades ethics 90 speech 92 chem 74 math 82 comp 85 I am dropping chem at 74% Woo Hoo! My math grade went up! Here are my revised courses and grades ethics 90 speech 92 math 85 comp 85 My average this term is 88.0%
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