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

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section: Chapter Questions
Problem 14PP
icon
Related questions
Question

Please use the python programming and no 'range' only while loops.

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: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
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
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-------------

 

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Processes of 3D Graphics
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr