Question: For this exercise you will create a function and store it in an include file, and then use the function in a simple application. Open
For this exercise you will create a function and store it in an include file, and then use the function in
a simple application. Open incmileagefunctions.php and add a function named reimbursement that
will: receive a mileage amount, calculate the correct reimbursement, and return the result. The correct
reimbursement will be the mileage multiplied by Save this file once you have coded the function.
The mileagefunction.html file contains a form that allows a user to submit a mileage amount to
mileagefunction.php The mileage function.php file already contains code to receive this value. Edit
mileage function.php to: include the incmileagefunctions.php file, send the mileage amount
submitted by the user to the reimbursement function, and receive the result that is returned. The
code already contains a print statement to print the result; the variable you use to receive the result
should match variable name used in the print statement.
incmileagefunctions.php:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
