{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

algorithm javascript 2

# algorithm javascript 2 - AkashDalsania CS170Section12...

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

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

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 2

algorithm javascript 2 - AkashDalsania CS170Section12...

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

View Full Document
Ask a homework question - tutors are online