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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started