N PYTHON PLEASE  Create a program that accepts input from the user and outputs information about the test scores: Input: Poll 5 students for their grade on the exam Output: Print the average score, the highest score, and a message to all students who received an A grade

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

IN PYTHON PLEASE 

Create a program that accepts input from the user and outputs information about the test scores:

  • Input: Poll 5 students for their grade on the exam
  • Output: Print the average score, the highest score, and a message to all students who received an A grade
Here's some Pseudocode for the Exam Time problem.
Print the intro
Make a counter variable that totals all exam scores
Make a variable to store the highest exam score (start at 0)
LOOP 5 times
Ask and read in the exam score (store in a variable)
Add the score for this student to the total score
IF this student scored higher than what is currently the highest
Assign the highest score variable to this student's score
IF this student's score is at least 90
Print a message congratulating the student
END LOOP
Print the average score (total counter divided by the number of students)
Print the highest score earned by one student (highest score variable)
Transcribed Image Text:Here's some Pseudocode for the Exam Time problem. Print the intro Make a counter variable that totals all exam scores Make a variable to store the highest exam score (start at 0) LOOP 5 times Ask and read in the exam score (store in a variable) Add the score for this student to the total score IF this student scored higher than what is currently the highest Assign the highest score variable to this student's score IF this student's score is at least 90 Print a message congratulating the student END LOOP Print the average score (total counter divided by the number of students) Print the highest score earned by one student (highest score variable)
Below is an example program output.
Exam Calculator
Please enter the test score for each student:
Student 1 > 10
Student 2 > 64
Student 3 > 90
Congratulations! Student 3 got an A!
Student 4 > 98
Congratulations! Student 4 got an A!
Student 5 > 72
SUMMARY
The average score on this exam was 66.8.
98 was the highest score earned by any one student.
Transcribed Image Text:Below is an example program output. Exam Calculator Please enter the test score for each student: Student 1 > 10 Student 2 > 64 Student 3 > 90 Congratulations! Student 3 got an A! Student 4 > 98 Congratulations! Student 4 got an A! Student 5 > 72 SUMMARY The average score on this exam was 66.8. 98 was the highest score earned by any one student.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education