algorithm javascript 2

algorithm javascript 2 - AkashDalsania CS170Section12...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Akash Dalsania CS 170 – Section 12 Algorithm for JavaScript 2 Ask customer which of the products listed they want and how many of them they want.  Calculate the total after discounts given and then show the user/customer total amount  due. 1. Start 2. Ask the customer for the product they wish to purchase, call it title 3. Ask the customer to input the how much of the item they want, call it uantity 4. Ask the customer if the order is correct. If it is, proceed to the next step. If not,  stop sequence and ask the user to refresh the page to try again. 5. Find the chosen product that the customer entered and set its respective  variables of Price and Discount 6. Find the original cost of the product by multiplying the Price times Quantity, call it 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/26/2011 for the course ECON 0146010010 taught by Professor Allisonfranzese during the Spring '11 term at Rutgers.

Page1 / 2

algorithm javascript 2 - AkashDalsania CS170Section12...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online