$Attendence="5";
$Quiz="7";
$Test="5";
$Midterm="15";
$Assignmet="10";
$Final="20";
Calculate in PHP
Calculate Total score, average, and Grade
Regard!
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:

https://www.daniweb.com/web-development/php/threads/435023/read-this-before-posting-a-question