Question: Create a DICTIONARY called raw _ grades using the assignment name as the key and the grade result as the value. NOTE: The grade value

Create a DICTIONARY called raw_grades using the assignment name as the key and the grade result as the value. NOTE: The grade value should be a decimal, for example if the grade was 8/10 the value would be entered as 0.8
Use a WHILE loop to continue gathering data until the user enters done.
Use a FOR loop to read the information from the DICTIONARY and write to a new DICTIONARY called final_grades using the assignment name as the key and the weighted grade as value. NOTE: The weighted grades in the library MUST add up to 100%. Do a calculation to add the values in the final_grades dictionary to validate the accuracy of your weighted calculation.
After the FOR loop creates the NEW DICTIONARY, the user should be prompted to add a new grade item (to raw_grades) as a choice. It they say yes, the new item will be appended and the WHILE loop will recalculate the final grades, including the newly added grade. If they say no, the program exits.
Use your own marks from this course to test out your program. If something has not been marked yet, do not include it yet. This program can be used to keep track of your final grade throughout the duration of the course.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!