Hard
Report Card
Read a student name, then n, then n lines
subject mark. Print a report: the name, a line of 20 dashes, each subject left-aligned in 12 characters with the mark right-aligned in 8, another dashed line, then Average the same way with 1 decimal.Input
Name; n; n lines.
Output
The report.
Sample 1
Input
Mim 3 Maths 90 English 85 Physics 77
Output
Mim -------------------- Maths 90 English 85 Physics 77 -------------------- Average 84.0
Sample 2
Input
A 1 Art 100
Output
A -------------------- Art 100 -------------------- Average 100.0
Output appears here