People are traveling more and more, and, with rising gas prices, they are becoming more aware of
Fantastic news! We've Found the answer you've been seeking!
Question:
People are traveling more and more, and, with rising gas prices, they are becoming more aware of the gas mileage their vehicles are achieving on long road trips. For this practical exercise, you will create a Web page that you can use to calculate your fuel economy for a given time period. After entering certain data elements, the user will be able to compute their mileage and have the trip summary displayed on a second page. The requirements for your website are as follows:
- Include a comment in each code file that includes theassignment name, your name and the date
- The web site title is FE PE
- Include a header on the main page that is Your Name, Trip StatsCalculator
- Include a text box to allow the user to enter a name for thetrip
- Include a text box to allow the user to enter the startingmileage on their odometer
- Include a text box to allow the user to enter the endingmileage on their odometer
- Include a text box to allow the user to enter the number ofgallons of gas used on the trip
- Include a button to get the trip summary information
- Include a header on the summary page that is Your Name, TripSummary
- Create a custom object to store the following trip summaryinformation:
- Trip Name
- Total Miles Traveled
- Total Gallons of Gas Consumed
- Mileage (Miles Per Gallon) achieved for the trip (displayed to1 decimal place)
- Display the contents of the custom object on the Trip Summarypage, using a for/in loop
- Place all JavaScript in the main page and only use the secondpage for display purposes
- User interfaces should resemble the examples below
The form loaded with data entered should resemble this:
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date: