Question: To earn credit for this assignment: You will create a JavaScript program embedded on an HTML file - according to the requirements listed on the

To earn credit for this assignment:
You will create a JavaScript program embedded on an HTML file - according to the
requirements listed on the next page.
Upload and submit a single html file (.html extension) containing the code required.
For your assignment to be graded, please include the following statement as a comment in
your program: On my honor, I have neither received nor given any unauthorized assistance
on this assignment.
PROBLEM DESCRIPTION
You are required to create a web page to implement a program to process data related to a tennis club
based on the logic designed for the previous assignments flowchart and pseudocode. The web page
will include JavaScript code in order to calculate Total Price, Sales Tax and Final Cost of the bill. You will
also follow a sequence of inputs and outputs in your program.
The original rules about the logic required are listed below:
A travel agency offers a variety of different packages for visiting several regions in Spain. Each
package includes accommodations for a certain number of nights at a hotel within the region being
visited.
To increase the amount of customers using this agency to travel, the agency has started to
offer premium packages that come with extra benefits.
Length of trip:
Hotel accommodations cost $200 per day
A trip length of 7(or more) days will receive a 10% discount on hotel costs
Transportation and tour guide services:
Rent transportation vehicle $150 per day
Private tour guide $200 per day
At the end of the purchase, two levels of premium packages will be offered, Silver or Gold.
Customers can choose either one (or none) of the two.
Silver premium packages cost $100 and provide a 10% discount on transportation
and tour guide services
Gold premium packages cost $200 and provide a 20% discount on all purchases (in-
cluding the package cost)
Inputs:
Number of Days: Integer
Transportation Vehicle: Yes or No
Tour Guide: Yes or No
Premium Package: Yes or No
Premium Type: Silver or Gold
Outputs:
Total price (pre-tax).
Discount.
Sales Tax amount to be added to the bill (7% rounded to two decimals).
Final Cost of the bill (including the tax).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!