Back to all jobs

PHP Code for a Celsius/Fahrenheit convertor  Add to shortlist

Client Details

MikeMike W   
United States  United States
  • Member Since: Aug 2010
  • Last Login: 29 Mar 2012
  • Jobs Posted: 18
  • Jobs Awarded: 11
  • Paid out: $816

Job Details

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

Bidding activity on this Job

Bids:22

Who has Bid:


View 19 more bids

Clarification Board

S. P.S. P. on 24/08/2010 08:53
Hi 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.M. W. on 24/08/2010 16:43
No, 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.J. C. on 24/08/2010 14:25
I can start today, what do you think?

Reply from Client

M. W.M. W. on 24/08/2010 16:41
How much?
A. M.A. M. on 24/08/2010 14:37
$f=$degree*9/5+32;

echo(round($f,2));

Reply from Client

M. W.M. W. on 24/08/2010 16:42
That'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.B. T. on 24/08/2010 16:01
Alex, 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.A. M. on 24/08/2010 17:31
Ben, 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.J. C. on 24/08/2010 23:16
choose my bind and i will give tomorrow pepopleperhour.com does not allow me to put lower the price :S
J. R.J. R. on 25/08/2010 12:51
Hi

i can make full script of the

$f=$de*9/5+32;

echo(round($f,2));


let me know your response

Thanks

Bidding closed

Stay safe: Read our safety guidelines before bidding

Bidding has ended for this project, the client has accepted the bid(s) below:

Accepted Bid #1

Amount: $63 Fixed Fee

Country of Freelancer: United Kingdom  United Kingdom

Acceptance Reason: Here you go.

Estimated Start Date: Within 1 Business Day





Here are some practical tips on staying safe


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}