Results 1 to 2 of 2

Thread: Need help with php exercises

  1. #1
    Join Date
    Oct 2017
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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)

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,375
    Thanks
    77
    Thanked 3,421 Times in 3,382 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •