// noprotectThis is only needed in JSBin, not in later assignments in Visual Studio Code.
TempConverterwith a property called
tempFand set it to an initial value of 0.
calcTempthat converts the object's
tempFproperty to Celsius, and returns the value calculated.
getTemp. It should:
ifstatement to test whether or not the temperature is a valid number. Investigate the
alert()function to indicate the problem. Then return the boolean value
tempFproperty to the value entered by the user, call the object's
displayTempmethod (created in the next step), then return the boolean value
displayTempmethod to display the converted temperatures. In it:
calcTempthat you wrote previously.
tempFeach time with the next Fahrenheit value lower by 5.
getTemp()method and assign the returned value to a variable.
whileloop to check if the returned value is false. If so, perform the above step until the returned value is true.
Your results should look something like this:
You will be graded on:
The lab will begin with a full score of 25 points and deductions will be made according to the amount and severity of errors.