Medium
Share of All Credits
Add a column with each student's share of the total credits as a percentage (1 decimal) and print
name share% for every student.Input
Lines 'name dept cgpa credits', then END.
Output
Lines.
Sample 1
Input
Mim CSE 3.82 120 Rafi EEE 3.41 98 Sara CSE 3.95 132 Tuhin BBA 3.60 110 Nadia CSE 3.71 125 END
Output
Mim 20.5% Rafi 16.8% Sara 22.6% Tuhin 18.8% Nadia 21.4%
Sample 2
Input
A CSE 3.00 100 END
Output
A 100.0%
Output appears here