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, 21.06.2019 14:00
Mr. johnson creates a game in which the players see the world from their avatar’s perspective. what genre of game is this?
Answers: 2
question
Computers and Technology, 23.06.2019 11:50
While preforming before operation pmcs, you notice the front right tire appears slightly under-inflated. what is the proper action?
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
question
Computers and Technology, 24.06.2019 00:10
Read each statement below. if the statement describes a peer-to-peer network, put a p next to it. if the statement describes a server-based network, put an s next to it. p - peer-to-peer s - server-based
Answers: 1
You know the right answer?
Random Weather Forecast Program Make a program to convert celsius tempatures to fahrenheit and vice...
Questions
question
Mathematics, 06.12.2021 20:30
question
Mathematics, 06.12.2021 20:30
question
Mathematics, 06.12.2021 20:30
Questions on the website: 13722361