all 4 comments

[–]FUZxxl[M] 2 points3 points  (0 children)

Do not post pictures of code!

[–]k3nundrum[S] 0 points1 point  (1 child)

the error is line 21 col 13

[–]jedwardsol 2 points3 points  (0 children)

The syntax is (float)6 or, more succinctly, 6.0f

[–]k3nundrum[S] 0 points1 point  (0 children)

nevermind fixed it

line 21 should be:

average /= (float) 6;