This program will take the user's input as a temperature in degrees Fahrenheit. The user will then click a radio button indicating whether a table of temperatures, starting with the entered value, will be displayed in increments of 5 degrees F or 10 degrees F. When a submit button is clicked your code will display a HTML table of temperature values. The first column will be temperatures in degrees Fahrenheit, given in increments of 5 or 10 degrees F, depending on the radio button clicked. The second column of the table will be the Celsius equivalent of the Fahrenheit temperature.
degC = (degF - 32) / 1.8;
The table will include a 100 degree F range. So, if the user enters 50 and clicks the 10 degree increment radio button, the table will include 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, and 150 degrees Fahrenheit values and their Celsius equivalents. If the user enters 50 and clicks the 5 degree increment radio button, the same temperature range will be displayed for degrees F, but in increments of 5 (50, 55, 60, 65, ..., 140, 145, 150).





<!DOCTYPE html>
<html>
<head>
<script>
//Function to perform conversion
function convertToCelcius() {
var degF = parseInt(document.forms["myTemperatureForm"]["temperatureInFahrenheit"].value);
var degreeIncrementVal = 0;
//Check increment value
if(document.getElementById("degIncrement5").checked==true)
{
degreeIncrementVal = 5;
}
else if(document.getElementById("degIncrement10").checked==true)
{
degreeIncrementVal = 10;
}
document.write("<table border='1'>");
document.write("<tr>");
document.write("<th>Degrees Fahrenheit</th>");
document.write("<th>Degrees Celcius</th>");
document.write("</tr>");
//Iterate calculate and print value
for(var i=0;i<=10;i++)
{
var temp = parseInt(degF)+parseInt(i)*parseInt(degreeIncrementVal);
var degC = (temp - 32) / 1.8;
document.write("<tr>");
document.write("<td>"+(degF+i*degreeIncrementVal)+"</td>");
document.write("<td>"+Math.round(degC * 100) / 100+"</td>");
document.write("</tr>");
}
document.write("</table>");
}
</script>
</head>
<body>
<h2>Temperature Conversion Table</h2>
<h4>Enter a starting value in degrees Fahrenheit and an increment value.</h4>
<!-- Create form to accept inputs -->
<form name="myTemperatureForm"
onsubmit="convertToCelcius()" method="post">
<input type="text" name="temperatureInFahrenheit"> Enter an value in degrees Fahrenheit<br>
<input type="radio" name="degIncrement" id="degIncrement5"> Convert in increment in 5 degrees<br>
<input type="radio" name="degIncrement" id="degIncrement10"> Convert in increment in 10 degrees
<br/><br/><input type="submit" value="Submit">
</form>
</body>
</html>
This program will take the user's input as a temperature in degrees Fahrenheit. The user will...
Develop a C# UWP application that would have: a text block that reads Enter Current Temperature: the text box would follow the text block. 4 buttons: One that reads Convert to Celsius One that reads Convert to Fahrenheit One that reads Clear One that reads: Exit If the user clicks Convert to Celsius button, the temperature entered would be converted to Celsius and the converted temperature would be displayed. If the user clicks Convert to Fahrenheit...
Write a function that takes temperature in degrees Fahrenheit as input and returns the temperature in degree Celsius as output. Here is the signature of the function: double toCelsius (double) Following is the formula to convert °F to °C:
Create a program in Python that will allow the user to enter a temperature in Fahrenheit which will then be converted to degrees Celsius. The program will keep asking the user for a Fahrenheit temperature until the user enters Q to quit. After each conversion the program needs to print out the degrees Celsius. The input prompts for this problem need to look like the following: Degrees Fahrenheit: Continue: For these input prompts watch the capitalization and spacing. There are...
(in python) Write a GUI application that converts Celsius temperatures to Fahrenheit temperatures. The user s... Write a GUI application that converts Celsius temperatures to Fahrenheit temperatures. The user should be able to enter a Celsius temperature, click a button, and then see the equivalent Fahrenheit temperature. Use the following formula to make the conversion ( F=9/5 C + 32) where F is the Fahrenheit temperature and C is the Celsius temperature
8.) Write a C++ program to convert temperature in degrees Fahrenheit to degrees Celsius. This is the equation for this conversion: Celsius = 5.0/9.0 (Fahrenheit-32.0) Have your program convert and display the Celsius temperature corresponding to 98.6 degrees Fahrenheit. Your program should produce the following display (replacing the underlines with the correct values): For a Fahrenheit temperature of-_ degrees, the equivalent Celsius temperature is degrees
Needs to be solved in MATLAB
Problem 4 Produce a conversion table for Celsius and Fahrenheit temperatures. The input to the function should be two numbers: Tlower and Tupper Which define the lower and upper range, in Fahrenheit, for the table The output of the function should be a two column matrix with the first column showing the temperature in Fahrenheit, from Tlower (32 °F) to Tupper (212 °F) with an increment of 5 °F, and the second column showing...
Temperature Converter Create a temperature conversion program that will convert the following to Fahrenheit: Celsius Kelvin Newton Your program should take a character which represents the temperature to convert from and a value to be converted to using the following specification: C - Celsius K - Kelvin N - Newton In addition your program should take in the following character to exit the program: X - eXit the program The numeric input for your program should be of type double....
IN JAVA…Write a GUI application that converts Celsius temperatures to Fahrenheit temperatures. The user should be able to enter a Celsius temperature, click a button, and then see the equiva-lent Fahrenheit temperature. Use the following formula to make the conversion: F = (9/5)C + 32 F is the Fahrenheit temperature and C is the Celsius temperature. Instead of only converting from Celsius to Fahrenheit, also convert from Fahrenheit to Celsius depending on the user's choice. Some hints: Use JTextField and...
C# Temp. Converter program.
Create a Celsius and Fahrenheit Temperature Converter
application. The application must have 2 Labels (each one of them
assigned only to Celsius and Fahrenheit), 2 TextBoxes (each one of
them assigned only to Celsius and Fahrenheit), only 1 Convert
Button, 1 Clear Button, and 1 Exit Button. Also, 1 Error message
label which will display the error messages.
The application should only allow the user to enter the
desired temperature just in one of the TextBoxes...
Java program
Write a Temperature class that represents temperatures in degrees in both Celsius and Fahrenheit. Use a floating- point number for the temperature and a character for the scale, eitherでfor Celsius or 'F' for fahrenheit. The class should have Four constructors: one for the number of degrees, one for the scale, one for both the degrees and scale, and a default constructor. For each of these constructors, assume zero degrees if no value is specified and celsius if no...