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 inc-mileage-functions.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 0.54. Save this file once you have coded the function.
The mileage-function.html file contains a form that allows a user to submit a mileage amount to
mileage-function.php. The mileage function.php file already contains code to receive this value. Edit
mileage function.php to: include the inc-mileage-functions.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.
inc-mileage-functions.php:
For this exercise you will create a function and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!