-->
当前位置:首页 > 题库

PROGRAMMING:Results statistical analysis table (*)

Luz5年前 (2021-05-10)题库392
Input the grade of a class, output the grade statistical analysis table.
####Input format
>Class size $$n $$(n > 0)$$
>Results of $$n $$Students $$s_ 1, s_ 2, \cdots , s_ n$$ $$(0 \leq s_ i \leq 100, 1 \leq i \leq n)$$
####Output format
>Output the serial number, score and histogram of $$n $$students
>Output the highest score, lowest score, average score and histogram of the whole class
>Output the proportion and histogram of each grade according to the grade
Grade:


< TD align = "center" > < b > results
< TD align = "center" > < b > level





















$$[90, 100]$$A
$$[80, 90)$$B
$$[70, 80)$$C
$$[60, 70)$$D
$$[0, 60)$$E

####Input sample
```in
fifteen
98.5 67.3 42.5 90 75.2 63 77 99.5 8 100 80.5 69.5 88.5 66.5 87.5
```
####Output sample
```out
001: 98.5 ****
002: 67.3 **
003: 42.5 ***
004: 90.0
005: 75.2
006: 63.0 ***
007: 77.0 **
008: 99.5
009: 8.0 ***
010: 100.0
011: 80.5 *
012: 69.5
013: 88.5 ****
014: 66.5 **
015: 87.5 ***
Max: 100.0
Min: 8.0 ***
Avg: 74.2 ****
A: 26.7% **
B: 20.0%
C: 13.3% ***
D: 26.7% **
E: 13.3% ***
```
---
Note:
(1) All real numbers only output 1 decimal place.
(2) The number of asterisks in the bar chart is rounded off by real number.







answer:If there is no answer, please comment