Expert Work

Expert Work

In the XHTML file, each input field has the attribute "name". This attribute value is how data will be collected for processing. For example:

When creating your PHP file, you will reference each piece of data through the $_POST array, where the value of the index is equal to the name attribute. For example:
$variable = $_POST['placeholder'];


Your calculations will be focused on two user-defined functions you must create. The functions should only be used after the first submission point. The first function requires two parameters and should return the calculated percentage. The second function requires the calculated percentage along with the assigned weight. This function should return the weighted percentage.
Your .php file should calculate and output the following values:
1. Percentage earned (for each grade component)
2. Weighted value earned towards the total grade (for each grade component)
3. Final grade percentage and letter grade
For the final letter grade you should use the breakdown listed in the syllabus. As the determination of the letter grade is simple, you can use advanced operators to determine the letter grade. Decision structures should not be used.
Please note that the calculator you are creating is simpler than what is used to determine your real final grade in the course as we use an equal weighting system for each grade in a specific grade component

 
Powered by