View Full Version : Need help with php exercises

10-11-2017, 01:01 AM
# exercise 1. In this PHP exercise, you will use a conditional statement to determine what gets printed to the browser. Write a script that allows the user to input the temperature in degrees Fahrenheit. If it is 60 or less it should tell you that it is cold. 80 or above is hot and anything between 60 and 80 is perfect weather. Also show the user what the temperature is in degrees Celsius.

#exercise 2.This should be a basic calculator where the user puts in 2 integers and chooses what mathematical function to perform on them (add subtract multiply or divide)

10-11-2017, 01:15 PM
We don't do homework. If you really are stuck, show us what you have so far and we will offer suggestions. For example, on that first one, isn't there a PHP function for converting F to C? If not, just look up the formula and write it out.