Back to all jobsPHP Code for a Celsius/Fahrenheit convertor Add to shortlist
Client Details
- Member Since: Aug 2010
- Last Login: 29 Mar 2012
- Jobs Posted: 18
- Jobs Awarded: 11
- Paid out: $816
Category:IT/Web/Programming > Web Programming
ID:34084
Title:PHP Code for a Celsius/Fahrenheit convertor
Location:Anywhere
Job Description
Use an appropriate looping statement to write a PHP script that displays a list of the Celsius equivalents of zero degrees Fahrenheit through 100 degrees Fahrenheit. To convert Fahrenheit to Celsius, subtract 32 from the Fahrenheit temperature, and then multiply the remainder by 5/9. To convert Celsius to Fahrenheit, multiply the Celsius temperature by (9/5), and then add 32. Use the round () function to display the Celsius temperature to one place after the decimal point. THIS PROJECT MUST BE COMPLETED BY FRIDAY, AUG. 27.
Job Budget
Type:Fixed Price
Budget:Not Specified
Additional Information
Attached Files: None
Bidding ends:Bidding Closed
Job Posted:24/08/2010 08:12
Clarification Board
S. P. on 24/08/2010 08:53Hi Mike,
Does this need to be done in PHP? Every time the page loads the request will be sent to the server which will have to process and calculate it - a waste of the server's resources for a set of data which will be exactly the same every time.
Would it not be better for the freelancer to provide a static table of converted numbers in oC and oF (which is what the PHP code would generate anyway) and save your server's resources?
Stuart
Reply from Client
M. W. on 24/08/2010 16:43No, it has to be done in PHP where a person enters a temp in C or F and it's converted to the other.
J. C. on 24/08/2010 14:25I can start today, what do you think?
Reply from Client
M. W. on 24/08/2010 16:41How much?
A. M. on 24/08/2010 14:37$f=$degree*9/5+32;
echo(round($f,2));
Reply from Client
M. W. on 24/08/2010 16:42That's a piece of it. But can you do the whole script where a visitor enters in a temp in Celsius or Fahrenheit and it gets converted to the other?
B. T. on 24/08/2010 16:01Alex, that is not what is required at all. At least read the clients requirements before you attempt to post code to solve the problem - it has made you look ridiculous.
A. M. on 24/08/2010 17:31Ben, It\'s exactly what the client wants.
I can ammend the code to do whatever the client wishes but it is such an easy job what is the point in charging for it.
J. C. on 24/08/2010 23:16choose my bind and i will give tomorrow pepopleperhour.com does not allow me to put lower the price :S
J. R. on 25/08/2010 12:51Hi
i can make full script of the
$f=$de*9/5+32;
echo(round($f,2));
let me know your response
Thanks
Here are some practical tips on staying safe
- Never pay any money to Clients and or provide sensitive details like your Bank information, Credit Card or Passwords
- Never accept a Job if you have been directed away from PeoplePerHour to another website
- Be cautious when providing your personal contact details (email, telephone number, instant message ID etc) before your Bid is accepted
- If you have been asked to send samples, put a watermark on them or send low resolution examples to avoid being exposed and not getting paid
- Don’t start work before your Bid is accepted and your Escrow deposit is made
- Keep your Escrow account topped up and ensure that you use the Private Message Board to track all pertinent details about the Job e.g. timelines, deliverables etc
- Before you supply final works to Clients, ensure you have adequate funds in Escrow
Remember: if something looks too good to be true, it probably is!
If you are in doubt of the legitimacy of a Job and or Client, let us know by Reporting the Job.
For further support on preventing and reporting fraud please contact the UK’s National fraud reporting centre at http://www.actionfraud.org.uk/ or outside the UK Fraud Watchers at {fraudWatchers}