Assignment 7 - Javascript 2

Assignment 7 - Javascript 2 - Keith Spano Computer...

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

View Full Document Right Arrow Icon
Computer Applications For Business JavaScript Assignment 2 - 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. PROCESS: Calculate the final cost of the order with the corresponding discount . 7. OUTPUT: (using document.write) Display person’s name, the initial cost, the discount, and the final cost with the discount. 8. OUTPUT: PRINT RECEIPT that says “Your order for [Quantity] number of [Product]
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.

This note was uploaded on 12/28/2011 for the course 198 170 taught by Professor Kristianstout during the Spring '10 term at Rutgers.

Page1 / 3

Assignment 7 - Javascript 2 - Keith Spano Computer...

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