subject

Random Weather Forecast Program Make a program to convert celsius tempatures to fahrenheit and vice versa, so we can complain about the weather with our friends overseas.
Reminder: To convert celsius to fahrenheit, multiply by 9, then divide by 5, then add 32. To convert fahrenheit to celsius, deduct 32, then multiply by 5, then divide by 9.
Unicode Characters: To print the degrees symbol in JavaScript, we need to use the write \u00B0 to represent the unicode character for the degress symbol.
Requirements
Store a celsius temperature into a variable.
Convert it to fahrenheit and output "NN°C is NN°F" in an HTML field (don't use alert)
Now store a fahrenheit temperature into a variable.
Convert it to celsius and output "NN°F is NN°C." in an HTML field (don't use alert)
JavaScript has a built-in tool that can generate a random number between 0 and 1. This tool is called a method. We'll talk about methods more later in the class. For now, know if you type Math. random(), you'll get a random number between 0 and 1.
Using this tool, update your fahrenheit to celsius tempature conversion program to do the following:
Instead of inputing a value for the Fahrenheit tempature, use Math. random() to generate a random tempature between 0 and 100
Have to program output: "It is NN°F today. That's NN°C." in an HTML field (don't use alert).

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
Aplan to budget time for studying and activities is referred to as a study routine. study habits. study skills. a study schedule.
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen too
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
What are some ways to use a range name in a formula? check all that apply. in the defined names group, click use in formula, and then select the desired name. begin typing the name in the formula, select a name from the autocomplete list, and use the arrow keys and tab key to enter the name in the formula. begin typing the formula, and then click and drag with the mouse to select the cells to include in the formula. right-click one of the cells in the range. click formula options, and use the dialog box to add the name.
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
How often does colleges update the cost of attendance on their website? . a)every two years b) every four years c) every year d) every semester
Answers: 1
You know the right answer?
Random Weather Forecast Program Make a program to convert celsius tempatures to fahrenheit and vice...
Questions
question
Biology, 21.01.2021 23:40
question
Mathematics, 21.01.2021 23:40
question
Mathematics, 21.01.2021 23:40
Questions on the website: 13722361