I need to make a function that takes a record as parameter and returns the final numeric grade. Going off of this code how would I do that?
$grades = array(
array(
'name' => 'Alice',
'assignments' => 100,
'exams' => 100,
'project' => 100,
'participation' => -100
),
array(
'name' => 'Bob',
'assignments' => 85,
'exams' => 67,
'project' => 100,
'participation' => 50
),
array(
'name' => 'Eve',
'assignments' => 90,
'exams' => 87,
'project' => 76,
'participation' => 100
),
array(
'name' => 'Mallory',
'assignments' => 80,
'exams' => 80,
'project' => 80,
'participation' => 100
)
);