Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

FSP Computing & Information Systems

Programming Using JavaScript

JavaScript Assignment

Date Due:

Part A: Monday 12 June 2023

Part B: Friday 23 June 2023                                                                                             

Creating a Web-Based Order Form

Using the HTML project, you completed earlier in this course you are required to produce a web page or pages which provide the ability to order products from that company over the web. The web page(s) must be well-formatted and provide pictures (where possible) and details of the products that are available for order, including the price. The user will select which products he/she wants to order and the quantity to order. The total price will then be displayed.

PROMO CODE

The company also offers its customers a 10% discount on the total cost of their purchases with the Promo Code of DISCOUNT10. No discount is given to customers who do not enter the correct Promo Code. A customer is only allowed to be given three chances to enter in the correct Promo Code.

SHIPPING

Orders of $100+ or more will receive FREE DELIVERY. For all orders under $100 a flat rate of $15 delivery fee will be charged for orders.

ADD GIFT BOXING

An option to have all items boxed and wrapped together for $5.00 is also available.

The HTML page must be well-formatted in keeping with a  company web  page.  The JavaScript  code  can  input  using  prompt boxes. Marks will also be awarded for the use of forms, input boxes and buttons for the selections.

Requirements:

PART A  PSUEDOCODE

(Part A may be handwritten)

1.       Write an algorithm in pseudo-code that will:

o  Ask a user for the quantity of each item that they wish to purchase

o  Ask a user for the promo code with only 3 chances to enter the correct promo code

o  Ask the user for gift boxing option.

o  Calculate the total price of the purchases which includes shipping.

2.       Provide 3 DESK CHECKS to test 3 different scenarios along with test data that adequately checks the algorithms. For example,

o  Correct promo code (first time) and order over $100

o  Incorrect promo code (3 chances given)  and order less than $100

o  No promo code and order over $100

3.       Submit your algorithms and desk checks in E-College using the link JavaScript Assignment  Part A Algorithms under Assessments.

PART B  PROGRAMMING

4.       Using the algorithms you wrote, produce a web page or pages which provide the ability to order products from that company over the web

o  The use of Functions is required.

o  The JavaScript code should be set out and indented so that it is easy to follow.

o  Variable names should be meaningful and adhere to standard coding practices.

o  The order form must be easy to use. HTML concepts such as background colour and fonts are to be used.

o  At least five articles of varying prices must be available to purchase

5.       Submit your algorithms and desk checks in E-College using the link JavaScript Assignment  Part B JavaScript under Assessments.

6.       Part A may be resubmitted if errors are detected during the programming process in Part B.

Submitting your website/assignment in E-College:

1.   Place all your html documents and images (which should be in an “Images” folder) in a folder labelled with your name

2.   “Zipyour folder (right click on the folder and select Send to and then select Compressed (zipped) folder).

3.    Finally, save your compressed (zipped) folder in E-College using the link JavaScript Programming Assignment  Part B under the Assessments section.