Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Write a 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

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

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions

Question

=+1 Why are local employment laws important to IHRM?

Answered: 1 week ago

Question

=+ Are some laws more important than others? If so, which ones?

Answered: 1 week ago