[SOLVED] SOLVED:Temperature Converter Solution

18.99 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

Rate this product

Create a file called tempconv.html
Have a text box that you enter your temperature into
Instead of a textbox to write the answer, use a div and getElementById and innerHTML
Have a button that converts from C to F
Have another button that converts from F to C
Use 2 separate functions
make sure ALL your javascript code is up in the head
Set up an event for the button (Links to an external site.) to do the calculations
The two functions needed are below:

function convertToC(F)
{
var result = (temp -32) * (5/9);
return result;
}

var c = convertToC(78);

function convertToF(C)
{
var result = (temp * (9/5)) + 32;
return result;
}

var f = convertToF(25);

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.