Question
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:
-
Display a message stating its goal
-
Include a definition for a function that returns a random score for a student between 0 and 100
-
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)
-
Ask the users to input how many students are in the class.
-
For each student in the class:
-
Run the two functions in order to calculate their final score and letter grade
-
Output their final score and letter grade
-
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started