Programming in JavaScript – Week 1 Assignment

Converting Fahrenheit to Celsius

Starting with the downloadable assignment files, write the Javascript needed for the application. Using the book and lectures as a guide, create an application converting Fahrenheit temperatures to Celsius using the prompt() and alert() methods. The prompt dialog box should look like this:

The alert dialog box should look like this:

To convert Fahrenheit to Celsius, subtract 32 from the Fahrenheit temperature then multiply that number by 5/9.

Open the convert_temps.html file in the attached zip folder. The script element in the head section is empty. Write the code for the application in this section between the opening and closing script tags. Customize using the return message “Thanks for using (student first and last name)’s temperature converter.” Create a document and paste in JS and/or HTML. Comment each code section with a detailed description of what it does. Once you’ve developed the application and saved it, test it in a browser and submit to the Week 1 assignment. 

Zip the HTML file for submission. Add a screenshot of the running application on your computer showing the time/date on your screen at the time of testing.

View your assignment rubric.

Title: Grantham Copyright - Description: Grantham Copyright 2018