Javascript 3 Flowchart

Javascript 3 Flowchart - Keith Spano Computer Applications...

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

View Full Document Right Arrow Icon
Keith Spano Computer Applications For Business JavaScript Assignment 3 - ALGORITHM AND FLOWCHART 1. START 2. INPUT: What is your name? – stored in var Name 3. INPUT: what product/service customer wants – stored in var Product 4. INPUT: how much of the product/service they want – stored in var Quantity DECISION: confirm: [Name] you ordered [Quantity] of [Product]. Is this correct? If No: OUTPUT: tell customer “Refresh the page to reload and place a new order.” If yes, then continue to step 5. 5. DECISION: Did the customer enter a valid product? If no: OUTPUT: tell customer “Sorry, [Name]. You entered an invalid product. Refresh the page to reload and place the order again.” If yes, continue to step 6 6. DECISION: does the customer want to order another product? If yes: loop back up the step where you ask the user to input a product name and quantity If no: continue to step 7 7. PROCESS: Calculate the final cost of the order with the corresponding discount . 8. OUTPUT: using document.write say: “Thank you for placing an order with us,
Background image of page 1

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

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

Page1 / 3

Javascript 3 Flowchart - Keith Spano Computer Applications...

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