Unit 2

  • Modify a nested if statement so it instead uses a compound conditional expression.
  • Use logical operators such as || (or) and && (and) to execute a conditional or looping statement based on multiple criteria.
  • This assignment is based on Chapter 2, Exercise 2-4 on page 118-119 of PHP Programming With MySQL (2nd Edition)

 

Gas Prices

Please enter a gas price below.

The input must contain no letters, but a decimal point is acceptable.

Enter Gas Price:

 

Make sure that the input is a number.