Lab Act 1 - Finals
Lab Act 1 - Finals
Instructions:
You are tasked with creating a web application called "Converter App" using HTML, CSS
and JavaScript. This app will allow users to convert weights, distance and temperature.
Follow the instructions below to build the app step by step. Each step is graded based
on accuracy and completion.
3. Index.html (5 points)
o make this your initial page
o this should contain buttons or components that will call the other pages/parts of
the web application.
4. other pages/parts of the web application
o WeightConverter (5 points)
a. should contain the following:
• A label at the top showing Weight Converter
• An input text for entering the weight, put a placeholder
• A label with “From Unit:: “
• A dropdown list (Kilograms, Grams, Pound)
• A label with “To Unit: “
• A dropdown list (KIlograms, Grams, Pound)
• A Button labeled “Convert”
• A text to display the conversion result
• A back button to call the initial page.
o LengthConverter (5 points)
a. should contain the following:
• A label at the top showing Length Converter
• An input text for entering the weight, put a placeholder
• A label with “From Unit:: “
• A dropdown list (Kilometers, Meters, Feet)
• A label with “To Unit: “
• A dropdown list (Kilometers, Meters, Feet)
• A Button labeled “Convert”
• A text to display the conversion result
• A back button to call the initial page.
o TemperatureConverter (5 points)
a. should contain the following:
• A label at the top showing Termperature Converter
• An input text for entering the weight, put a placeholder
• A label with “From Unit:: “
• A dropdown list (Celsius, Fahrenheit, Kelvin)
• A label with “To Unit: “
• A dropdown list (Celsius, Fahrenheit, Kelvin)
• A Button labeled “Convert”
• A text to display the conversion result
• A back button to call the initial page.
5. Index.html (5 points)
o make sure that each button will call the appropriate converter page.
6. WeightConverter (10 points)
o Retrieve user input from the input and ensure it's a valid number.
o Use the selected "From Unit" and "To Unit" from the dropdown list to perform
the weight conversion.
o Display the conversion result in the text when the user clicks the "Convert"
button.
o Write a function named convertWeight to handle the weight conversion
logic. Use the following Conversion rates:
This lab activity assesses your ability to build a fully functional web application using html, css
and JavaScript. Follow each step carefully and test your web app thoroughly before submission.
God bless!