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;

--

--

--

Unity Developer and Software Engineer who loves making games with GameDevHQ

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Abolition of the Data Science Cave

Why You Should NOT Use ARIMA to Forecast Demand

Techniques of Feature Scaling with SAS Custom Macro that can increase the Accuracy and Performance…

To Nanodegeree Or Not To Nanodegree?

Let’s Talk about Natural Language Interfaces for Data Visualization

Essence of data analytics in business

Polymathy in today’s world: How Data Science can exist within a strategic consulting realm

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Al Heck

Al Heck

Unity Developer and Software Engineer who loves making games with GameDevHQ

More from Medium

Instantiating & Destroying Gameobjects in Unity

Aeterna

The 20th Gwanghwamun InternationalShort Film Festival starts today!- released worldwide online

C++ Tutorial — Pointer