HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


50902 - Translate Score into Grade

Guest
• Review clarifications (2)

Volume problems

• 50888 - Extracting Digits
• 50893 - Print All Numbers
• 50905 - Convert KPH to MPH
• 50881 - Exchange the Values
• 50903 - Basic Math Calculator
• 50885 - Calculate the Average
• 50887 - Average of Test Scores
• 50895 - Hours Minutes and Seconds
• 50902 - Translate Score into Gr...
• 50890 - Convert Celsius to Fahrenheit
• 50889 - Convert to Minutes and Sec...
• 50900 - Put the Numbers in Descend...
• 50884 - Area and Perimeter Of The ...
• 51040 - Annual profit
• 51038 - Simple interest
• 51041 - Plane Segmentation
• 51039 - Automated billing system

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