Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(python) Skills & Page References Specifying field widths see page 75 and for alignment see page 76-77. For the order of f-string designators and concatenation

(python)

Skills & Page References

  • Specifyingfield widthssee page 75 and foralignmentsee page 76-77.
  • For theorder off-string designatorsandconcatenation with f-stringssee page 78.
  • For theitems()method, see page 476-477.
  • For thekeys()method see page 477 and see page 479 for thevalues()method.
  • Foraddingelements, see page 470 and toremovean element see page 475.

program9_1.py Write a program that stores current grades in a dictionary, withcourse codes as keysandpercent grades as values. Start with anemptydictionary and thenuse a while loopto enable input of course codes and percent gradesfrom the keyboard. Enter data forat least fivecourses. After entering the data, use afor loopandthe keysto show the current status of all courses. This same loop should include code that enables determination of theworst courseand theaverage of all courses. Both of these findings should be printed when the loop ends. Theworst courseshould bedropped and reported. This being done, the program should useanother loopand theitems methodto display the revised courses and grades and report therevised term average.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

App Inventor

Authors: David Wolber, Hal Abelson

1st Edition

1449397484, 9781449397487

More Books

Students also viewed these Programming questions