Question: Write a python program that uses functions to assign random final scores and calculates the letter grades for students in the course. The program should:

Write a python program that uses functions to assign random final scores and calculates the letter grades for students in the course.

The program should:

  1. Display a message stating its goal

  2. Include a definition for a function that returns a random score for a student between 0 and 100

  3. Include a definition for a function that receives a final score (between 0-100) and returns the corresponding letter grade (use the syllabus for accurate calculation)

  4. Ask the users to input how many students are in the class.

  5. For each student in the class:

    1. Run the two functions in order to calculate their final score and letter grade

    2. Output their final score and letter grade

    3. A 100-94
      A- 93-89
      B+ 88-85
      B 84-82
      B- 81-79
      C+ 78-76
      C 75-73
      C- 72-70
      D+ 69-67
      D 66-63
      D- 63-60
      E 60-0

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 Databases Questions!