Question: e required to create a web page to implement a program to process data related to a tennis club vascu on the logic designed for
e required to create a web page to implement a program to process data related to a tennis club vascu on the logic designed for the previous assignment's 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 $ per day
A trip length of or more days will receive a discount on hotel costs
Transportation and tour guide services:
Rent transportation vehicle $ per day
Private tour guide $ 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 $ and provide a discount on transportation and tour guide services
Gold premium packages cost $ and provide a discount on all purchases including 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 pretax
Discount.
Sales Tax amount to be added to the bill 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
