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.
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 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.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images