-
Need help with php exercises
# 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)
-
-
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.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks