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 01:00
What can you find the under the privacy policy section of a shopping website?
Answers: 1
question
Computers and Technology, 22.06.2019 02:00
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print?
Answers: 3
question
Computers and Technology, 22.06.2019 14:30
Complete the sentence based on your knowledge of the professional difficulties faced by music artists. digital technology allows audiences to see free live telecasts of music or dance performances through
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
What is a loop? a. a collection of function definitions at the top of a program b. a line of code that defines a variable and assigns it a value c. a program that opens the turtle graphics window d. a block of code that repeats a specific number of times
Answers: 1
You know the right answer?
Random Weather Forecast Program Make a program to convert celsius tempatures to fahrenheit and vice...
Questions
question
Chemistry, 29.10.2020 05:20
question
Mathematics, 29.10.2020 05:20
Questions on the website: 13722361