English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
3

have done this but cant get it to add up the figures i have to input into it can any one help


<br /> Delivery Charges<br />

2007-05-07 01:43:45 · 2 answers · asked by bud1658 2 in Computers & Internet Programming & Design

i also have to do this with this program please help
Run your program with each of the following inputs. (Note that
you only need to enter the figures, without any £ sign.)
• 24
• 25
• 99
• 100
For each run insert a screen shot of the browser window into the
document containing your solution.

2007-05-07 01:44:22 · update #1

when i run this i keep getting a question mark instead of pound sign plus it dosnt add the sums up

2007-05-07 01:45:08 · update #2

2 answers

First, your first argument contains a question mark, not a pound sign.

Second, you're not adding the shipping to the order title.

2007-05-07 02:50:08 · answer #1 · answered by Anonymous · 1 0

You have an error in the script.
This line
document.write('Delivery charge is £3.00 The value of your order is ?; + orderValue + '.
');
has a missing quote. it has a ?; instead of a £.

Also you have not added the delivery charge to the order if there is a delivery charge.

2007-05-07 09:47:14 · answer #2 · answered by AnalProgrammer 7 · 2 0

fedest.com, questions and answers