HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50948 - Translate Score into Grade

Section problems

• 50965 - Draw the Pattern
• 50945 - Bigger or Smaller
• 50946 - Area of Rectangle
• 50949 - Vowel or Consonant
• 50881 - Exchange the Values
• 50937 - Calculate the Average
• 50947 - Calculate the Average
• 50964 - Increasing or Decreasing
• 50948 - Translate Score into Gr...
• 51104 - Steel
• 51113 - The Menu
• 51112 - Even Numbers
• 51105 - Currency System
• 51103 - Is it a triangle?
• 51114 - The traveling vehicle
• 50251 - Symmetric matrix
• 50252 - Birthday

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

Translate Score into Grade

Write a program, which asks for a student score. Score is a number from 0-100. Translate the score into grade according to the next limits:
score >= 90 is "A"
score >= 80 is "B"
score >= 70 is "C"
score >= 60 is "D"
anything else is "F"

if the score is 100 print "Perfect score!”

Input: A positive integer number.

Output: The letter grade or the message "Perfect score!” for 100 points;

Sample Input1:

Sample Input2:

Sample Input3:

85

30

100

Sample  Output1:

Sample  Output2:

Sample  Output3:

B

F

Perfect score!

 

Äëÿ îòïðàâêè ðåøåíèé íåîáõîäèìî âûïîëíèòü âõîä.

www.contester.ru