#K40992. Feedback Rating Categorization
Feedback Rating Categorization
Feedback Rating Categorization
You are given the number of feedback ratings and a sequence of integer ratings. Your task is to classify each rating into one of the following categories based on the value:
- POOR: if the rating is strictly less than 4.
- AVERAGE: if the rating is between 4 and 6 (inclusive).
- GOOD: if the rating is between 7 and 9 (inclusive).
- EXCELLENT: if the rating is equal to 10.
Read the input from stdin
, process the ratings, and print the corresponding categorization for each rating to stdout
as a space separated string.
inputFormat
The first line contains an integer T
denoting the number of feedback ratings. The second line contains T
space-separated integers, each representing a feedback rating.
outputFormat
Output a single line containing T
strings. Each string should be one of POOR
, AVERAGE
, GOOD
, or EXCELLENT
, corresponding to the categorization of each rating. The categories should be printed in the same order as the input ratings, separated by a single space.
1
2
POOR
</p>