Reference no: EM133166868
Programming Using JavaScript Assignment
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)
Question 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.
Question 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
Question 3. Submit your algorithms and desk checks in E-College using the link JavaScript Assignment - Part A Algorithms under Assessments.
PART B - PROGRAMMING
Question 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
Question 5. Submit your algorithms and desk checks in E-College using the link JavaScript Assignment - Part B JavaScript under Assessments.
Question 6. Part A may be resubmitted if errors are detected during the programming process in Part B.
Costs versus benefits of giving google permission
: What are the costs versus benefits of giving Google permission to leverage this profile and deliver you personalized ads.
|
What is the amount they will pay for expenses this year
: Joan and Don Norwood have shares valued at $36,000 on December 1. What is the amount they will pay for expenses this year
|
Explain marketing and business decisions
: Do you believe it is possible to make sound marketing and business decisions without using primary research? What advantages does using primary research have ov
|
Explain the investiment adds value to the business
: Critic on whether the investiment adds value to the business. The strategies used Traditional CSR, Strategic CSR or creating value.
|
Calculate the total price of the purchases
: Calculate the total price of the purchases which includes shipping - produce a web page or pages which provide the ability to order products from that company
|
Examples of business organizations
: Directions: In the four boxes below, list down at least 5 examples of business organizations tackled above that are present in your locality.
|
Covid-19 pill access at risk as pharmacies push
: Read the article Covid-19 Pill Access at Risk as Pharmacies Push for Bigger Payments. After reviewing the article, provider your feedback regarding the article.
|
What is bob ending capital account
: During the year, he contributed $10,000, the LLC in total had $100,000 of net income, and he withdrew $45,000. What is Bob's ending Capital Account
|
Race and citizen identity in classical athenian democracy
: 1. Describe how Euripides' tragedy Ion reinforced citizenship identity in 5th cent. BCE Athens.
|