Create a program that will rate the grade of the student inputted by the user Ratings: 74 - below = "Drop!" 75 - 79 = "Your grade is Poor!" 80 - 85 = "Your grade is Good!" 86 - 90 = "Your grade is Very Good!" 91 - 96 = "Your grade is Excellent!" 97 - 100 = "Your grade is Outstanding!" 101 - above = "Invalid input!" Example: //Input Enter grade: 83 //Output Your grade is Good!
Added by Kristen M.
Close
Step 1
We can do this using the `input()` function in Python. Show more…
Show all steps
Your feedback will help us improve your experience
Amaad Martin and 91 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write a program to determine a student's final grade and indicate whether it is passing or failing. The final grade is calculated as the average of four marks.
Sarvesh S.
Write a grading program for a class with the following grading policies: 1. There are two quizzes, each graded on the basis of 10 points. 2. There is one midterm exam and one final exam, each graded on the basis of 100 points. 3. The final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (Do not forget to normalize the quiz scores. They should be converted to a percent before they are averaged in.) Any grade of 90 or more is an A, any grade of 80 or more (but less than 90) is a B, any grade of 70 or more (but less than 80) is a C, any grade of 60 or more (but less than 70) is a D, and any grade below 60 is an F. The program will read in the student's score (two quizzes and two exams) and output the student's record, which consists of two quiz and two exam scores, as well as the student's average numeric score for the entire course and the final letter grade.
Vaidik S.
(Analyze scores) Write a program that reads an unspecified number of scores and determines how many scores are above or equal to the average and how many scores are below the average. Assume the input numbers are separated by one space in one line.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD