Lab 3: First Javacript Program
This will be completed in class and graded based upon completion. You will place the completed lab in cpscstorage02 in the Lab3 folder
HTML setup:
Open HTML kit and start a new project
Using html, document your name
Create a table with 4 rows and 2 columns
Each row will contain the Javascript function code in the first column and the working code in the second column for the 4 items below.
Note that you will need to nest tables to get the format working correctly
To display the code for the Javascript function in the first column, you will need to use the <pre> tag
To properly display your code, you will need to use &lt; to display < and &gt; to display >
The second column will contain the HTML table as pictured below and invoke your javascript function
Recall the table from
Chapter 4 Notes
Partial Solution
Write the HTML code and Javascript functions for these metric to English conver sions:
convert liters to cups, quarts and gallons.
Convert Celsius to Fahrenheit
Convert kilograms to pounds
Convert feet to meters
Use this image as a guide:
A complete solution might resemble this: