Al Heck

Quiz Grade Average

How can we create a simple quiz grade average system?

In the spirit of simple coding challenges, we created a random range of all 5 variables. Should have done a for loop to assign those. Then we added all averages for a total and divided it by 5.

To round out the average, we then use the following formula:

average = Mathf.Round(average * 100f) / 100f;