Question
Web Design JAVASCRIPT Add a concierge fee of $150 to tours that cost more than $2,500 and a fee of $300 if a tour costs
Web Design JAVASCRIPT
Add a concierge fee of $150 to tours that cost more than $2,500 and a fee of $300 if a tour costs more than $3,500 Concatenate a travelers first and last name
Discounts a tour if there are more than 8 people attending (you decide on the discount)
the answer may vary, but in general, it may include your proposed html file including your JavaScript file (myname.js) included in the html file. The sample syntax to include your JavaScript file is shown below:
*** The sample syntax to include your JavaScript file is shown below: ***
Continue with writing the JavaScript as below sample framework:
Define your variables - including cost variable
Add your function (s)
Calculate Cost (cost will be (tour price (tprice) + concierge fee of $150 $300) discount amount (discount))
Hint: To calculate cost your logic will include checking for: (assuming, totalcost is variable for total cost, tprice is the variable for tour price, passnum is number of passengers in attending the tour, discount is discount either as rate or amount (any rate or amount, you decide it, assume discount is deducted from tour price + concierge fee of $150 $300)):
Therefore, first calculate (tour price + concierge fee of $150 $300), then calculate discount based on number of passengers, then calculate the cost.
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