Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions

Question

1. Define and explain culture and its impact on your communication

Answered: 1 week ago