Question
You have been hired by Johnson's Shipping company to add a shipping estimate feature to their website. For this practical exercise, you will create a
You have been hired by Johnson's Shipping company to add a shipping estimate feature to their website. For this practical exercise, you will create a web page that you can use to estimate shipping charges. The requirements for your web site are as follows: Include a comment in the code that includes the assignment name, your name and the date The web site title is CIS 213, Unit 3 Midterm Include a header that is Your Name, CIS 213, Unit 3 Midterm, Shipping Estimator Include a text box to allow the user to enter their mileage for shipping Include a label for the text box that is "How many miles?" Include a text box to allow the user to enter the weight of their package for shipping Include a label for the text box that is "How many pounds?" Include a button to allow the user to estimate their shipping charges Include an element (or elements) to display the calculated shipping charges The element should display (or include a label) stating "Your estimate shipping cost is: " If the mileage or weight text boxes are empty or zero, prompt use to enter valid value Include a JavaScript function (or functions) to do the following: Store the package weight in a variable Store the package shipping mileage in a variable If either weight or shipping is invalid (empty or less than zero) prompt user with warning Calculate the shipping cost (shipping cost = weight * mileage) Shipment with weight of 3 lb shipped 4 miles away is $12 Display estimated shipping value
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started