Question: Hello! Please help me what the problem is to print out the final grade. ( I already have the totalweighted value outside of the function.)
Hello!
Please help me what the problem is to print out the final grade. ( I already have the totalweighted value outside of the function.)
= 0) ? "F": (($totalweightedvalue <=70 and $totalweightedvalue >=60) ? "D": (($totalweightedvalue <=80 and $totalweightedvalue >=70 ? "C": (($totalweightedvalue <=90 and $totalweightedvalue >=80 ? "B": (($totalweightedvalue <= 100 and $totalweightedvalue >=90 ? "A")); return $lettergrade; }
echo "Your final grade is " . finalgrade();
?>
I got this error: PHP Parse error: syntax error, unexpected ')' in /home/XgOyaE/prog.php on line 23
Thank you.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
