Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
Results 1 to 2 of 2
Thread: Temperature conversion
-
04-12-2016, 04:33 AM #1New to the CF scene
- Join Date
- Apr 2016
- Posts
- 1
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Temperature conversion
Hello, good and awesome people in the house.
Please, kindly help me out this javascript question.
The user will enter a temperature in degrees Fahrenheit into a text input. At the click of a button, the temperature in degrees Celsius will be shown in a second readOnly text box.
Instructions:
Create a properly labeled text input to allow the user to enter temperature in degrees Fahrenheit.
Create a second properly labeld read only text input where the converted temperature will be displayed in degrees Celsius.
Create a function that takes the input from the first text box, converts it from degrees Fahrenheit and places the resulting value in the second text box.
Create a button input with an onclick event handler that calls your conversion function.
Thank you.
-
04-12-2016, 08:20 AM #2Supreme Master coder!
- Join Date
- Jun 2002
- Location
- London, England
- Posts
- 18,929
- Thanks
- 211
- Thanked 2,624 Times in 2,602 Posts
This forum is not a free coding service. As a general rule, the people helping out in this forum don't write code for others (especially code that appears to be for homework), but try to help with fixing code that doesn't work. You'll be far more likely to get help if you have made a substantial effort and written some code yourself. Then someone here will almost certainly help you correct/improve your work.
It is not really in your best interests that others do all or most of your homework for you. Many people would regard that as cheating. Furthermore your teacher may gain a false and exaggerated idea of your programming capabilities and so not offer you the support you need. Also, if you hand in other people's work which you do not completely understand, then you will start to fall behind and your difficulties will increase.
We see a future in driverless cars, something that might hit many of us. - Juergen Maier (Siemens) interviewed on BBC 1
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.



Reply With Quote
