GNVQ Visual Basic & IT - Unit 6 (Sue Cahill)


VBScript, On-Line Quotation Form Using an Array

Link to RNIB links

Select the product you require from the list, then simply enter the quantity, and click the Calculate button to see the total cost.

Qty

Total Cost included £12.50 Postage & Packing on orders less than £1500


This form was made using vbScript code and HTML. An array is dimensioned to provide a number of choices in this case a price list.
 
Question Answer
1) Take a printout of the source code and identify / annotate the ARRAY coding. 
2) How many elements are dimensioned in the ARRAY and how are they numbered? 
3) Modify the code to include another item as follows: 
Dell P111 500 Professional computer £799
Show the tutor when it is working and make another print out of the modified code.
4) What are the three types of object used on this form? 
5) What happens to the object displaying the computer items as the  new item is added? 
6)  Test what  happens when a range of quantities are added, you should at least cover  zero quantity,  0.5 and very large numbers.
7) View the page in two browsers IE4 and Netscape 4.  Note any differences that you observe
8) List the variables that are in use.
9) Which line of code calculates the total cost?
10) Which lines of code decide whether to include postage costs?
11) Test the form thoroughly to identify any weaknesses and suggest practical ways to improve the form.



 Top of Page
Home Page
Query for Tutor?