Try another version of this question
Shell gas station is having a sale on diesel. If you buy `4` gallons or less, you pay the regular price of `$3.39` per gallon. If you buy more than `4` gallons, you pay `$3.19` per gallon. Write a piecewise function for the price of `n` gallons of diesel at Shell.
` D(n)= {( ),( ),( ):}` | if `0<n ≤` | |
if `n>` |
Box 1: Enter your answer as an expression. Example: 3x^2+1, x/5, (a+b)/c
Be sure your variables match those in the question
Box 2: Enter your answer as an integer or decimal number. Examples: 3, -4, 5.5172
Enter DNE for Does Not Exist, oo for Infinity
Box 3: Enter your answer as an expression. Example: 3x^2+1, x/5, (a+b)/c
Be sure your variables match those in the question
Box 4: Enter your answer as an integer or decimal number. Examples: 3, -4, 5.5172
Enter DNE for Does Not Exist, oo for Infinity
`D(n)= {(3.39 n if 0< n <= 4),(3.19 n if n > 4):}`