Question: *PHP* 4. Using if/elseif/else statement determine the bonus percent. Make sure to change the value of $sales to fully test the script. If sales is
*PHP*
4. Using if/elseif/else statement determine the bonus percent. Make sure to change the value of $sales to fully test the script.
If sales is between 2000 and 3000, the percentage to calculate the bonus is .10
If sales is between 3001 and 4000, the percentage to calculate the bonus is .20
If sales is greater than 4000, the percentage to calculate the bonus is .30
Anything else gets a 0 for the bonus percentage
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
