INPUT OUTPUT 35 , 90 , 100 , 83 , 2 , 62 , -1 99 , 34 , 99 , -1 79, 30 , 85 , 74 ,0,74, 81,55, -1 There were more 'B' grades than 'C' grades There were an equal number of 'B' and 'C' grades There were more 'C' grades than 'B' grades There were an equal number of 'B' and 'C' grades There were more 'B' grades than 'C' grades -1 44, 80 , 89, 72, 100, 80 -1
INPUT OUTPUT 35 , 90 , 100 , 83 , 2 , 62 , -1 99 , 34 , 99 , -1 79, 30 , 85 , 74 ,0,74, 81,55, -1 There were more 'B' grades than 'C' grades There were an equal number of 'B' and 'C' grades There were more 'C' grades than 'B' grades There were an equal number of 'B' and 'C' grades There were more 'B' grades than 'C' grades -1 44, 80 , 89, 72, 100, 80 -1
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
Related questions
Question
Please use the python

Transcribed Image Text:Examples :
INPUT
OUTPUT
35 , 90 , 100 , 83 , 2,62, -1
99 , 34 , 99 , -1
79, 30 , 85 , 74,0,74, 81, 55, -1
There were more 'B' grades than 'C' grades
There were an equal number of 'B' and 'C' grades
There were more 'C' grades than 'B' grades
There were an equal number of 'B' and 'C' grades
-1
44, 80 , 89, 72, 100, 80 -1
There were more 'B' grades than 'C' grades

Transcribed Image Text:Problem : More 'B' or 'C' Grades?
Dr. Ely has a stack of graded exams on his desk. All grades are integers with the lowest possible grade
being a 0 and the highest possible grade being 100. He would like to know if more students got a grade
in the 'B' range or a grade in the 'C' range on the exam (the lowest score for a 'C' is a 70, the lowest for a
'B' is an 80, and the lowest for an 'A' is 90. There is no such thing as a C- or C+, these scores are all just a
'C' grade. The 'B' grades work in a similar fashion).
Write a program that allows Dr. Ely to input each exam score into the program, one at a time, until Dr.
Ely terminates input by typing in a -1. The program should correctly print one of the following three
messages:
1) There were more 'B' grades than 'C' grades
2) There were more 'C' grades than 'B' grades
3) There were an equal number of 'B' and 'C' grades
Expert Solution

Step 1 Summary
I have provided PYTHON CODE along with CODE SCREENSHOT and also provided THREE OUTPUT SCREENSHOTS-------------
Step by step
Solved in 4 steps with 4 images

Knowledge Booster
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.Recommended textbooks for you

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education