Prompts the user to enter temperature value in fahrenheit


Homework

Question I: In HTML page, insert a JavaScript code that prompts the user to enter three values (name, age, and major) and save them in three variables and then print the values using document write method.

Sample output: name is Mike, age is 30, and major is CS

Question II: Update question #1 by moving the JavaScript code into external file and then link it to your html page.

Question III: In HTML page, insert a JavaScript code that asks the if the user wants to continue to the next page. Save the user's answer to a variable and then print its value using alert method.

Question IV: In HTML page, insert a JavaScript code that prompts the user to enter the temperature value in Fahrenheit. Converts the temperature from Fahrenheit to Celsius and print out both values using document write method.

Note: you can use this equation for converting from Fahrenheit to Celsius: C

Celsius= (5/9) * (fahrenheit-32);

Sample output: temperature in Fahrenheit=55 and the value in Celsius= 12.777777777777779

Question 5: In HTML page, suppose that you have the following a JavaScript code:

i. var z = 5, r;
r = (++z) + 5;

ii. var f = 5, e;
e = (f++) + 5;

iii. var a = 2,
b = 4,
c,
d;
c = 3 + a * b;
d = b / a / 2;

What are the values of r, e, c, and d variables?

Try to answer the question by:

i. Calculating the results manually.
ii. Confirm your results by using the document method to print the results of r, e, c, and d values.

Format your homework according to the following formatting requirements:

i) The answer should be typed, using Times New Roman font (size 12), double spaced, with one-inch margins on all sides.

ii) The response also includes a cover page containing the title of the homework, the student's name, the course title, and the date. The cover page is not included in the required page length.

iii) Also include a reference page. The Citations and references must follow APA format. The reference page is not included in the required page length.

Request for Solution File

Ask an Expert for Answer!!
Software Engineering: Prompts the user to enter temperature value in fahrenheit
Reference No:- TGS03109096

Expected delivery within 24 Hours