Assignment 2
SYST10199 – Web Programming
Note:
Assignment must be completed as an individual effort.Due date for submission is specified in SLATE.All online submissions will be done via SLATE (Email submissions will NOT be accepted).Late assignments will be penalized 10% each day for up to 3 days. After that, it is worth zero.Please refer to theAcademic Dishonesty Policy.
Instructions:
Make a folder nameda2-firstname-lastname.
Make a HTML file and save it with the nameindex.html within the a2-firstname-lastname folder.
The<title> tag should read: Assignment 2 for <Your Name>.
Display the following information in<H1> tag as heading in the index.html page:
Assignment 2
Your Firstname Lastname
Add a<hr> tag after the above heading.
Create a simpleunit conversion application using JavaScript.
Implement the following unit conversions:
-
FromCelsius toFahrenheit and vice versa.
-
FromFeet toMeters and vice versa.
-
FromInches toCentimeters and vice versa.
-
FromPounds toKilograms and vice versa.Display a single textbox, and eight buttons for each conversion.Clicking on a button calls the respective JavaScript function to perform the conversion.
-
Make use of unobtrusive JavaScript i.e. functions based.Display the result in a<p> tag below the buttons.
-
The result should be in two decimal places, along with the units.
-
Don’t use any message boxes such asalert() orprompt().Add a button that clears the content of the textbox and the<p> tag, and sets the cursor in the textbox. (Textbox gets the focus).All the JavaScript code should be in a separate file, saved within thescripts folder.Design the layout and appearance of the HTML page by using CSS.CSS should be used to provide a better layout. Use professional design and background, no loud colorful backgrounds please.
Finishing Up:
Be sure to save all changes.View your web site in multiple browsers and then make changes and review as needed.your entire folder to the dropbox in SLATE, as well as publish it to Cpanel.Add password security. Password setup steps are attached as separate file for reference.While uploading the assignment in dropbox, remember to write the URL of your published assignment.
">