Well, for one thing, you need to declare grade, average, and total as double types.