Weighted average calculator

Write one line per grade in the format «grade weight» (e.g. credits): get the weighted average.

What it's for

The weighted average gives more importance to values with a higher weight (for example exams with more credits). Different from the simple average, which treats everything equally.

How to write it

One line per item: first the grade, a space, then the weight (credits, hours, coefficient). Example: «28 9».