Calculate in PHP
Calculate Total score, average, and Grade
Member Avatar

WHy have these variables got 'pt' in them? You need to store integers.

This sounds like homework to me, so show us what you've done so far.

If you can't calculate a total or average from some variables, it means that you have not learned the basics of the language. I would suggest that you take the time to read a few tutorials on PHP.
As for Grade - how on earth are we supposed to know ow to do that when you have not supplied the information, e.g. "grade boundaries"

I suggest that you read the PHP sticky before posting any more questions: