# js3 - 10 If product input is Caramel Pecan Bark Gift Tin...

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

Algorithm 1. Start 2. Ask the customer to input his/her name 3. Use a prompt welcome with customer’s name 4. Input product 5. Input quantity 6. Confirm quantity and product with the user. a. If yes, continue to next step. b. If no, refresh page and start again from beginning 7. If product input is chocolate comforts giftset, then price is \$55 and item_discount is .15, go to step 12, and if not, then continue to next step. 8. If product input is Godiva Dark Chocolate with Rasberry Bars, then price is \$70 and item_discount is .25, go to step 12, and if not, then continue to next step. 9. If product input is Dark chocolate Pearls, then price is \$71.10 and item_discount is .07, go to step 12, and if not, then continue to next step.

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.

Unformatted text preview: 10. If product input is Caramel Pecan Bark Gift Tin, then price is \$25 and item_discount is . 3, go to step 12, and if not, then continue to next step. 11. If product is not there then give message that say invalid product and start again from step 4. 12. Calculate; cost = price*quantity 13. Calculate total discount; discount=price*discount*quantity 14. Calculate order; total_order=cost-discount; 15. Confirm whether customer wants to order more products. a. If yes, then start again from step 7. b. If no continue to step 15. 16. Calculate the total cost of the all ordered. 17. Write the total cost of the order. 18. End...
View Full Document

## This note was uploaded on 01/19/2012 for the course GEOL 123 taught by Professor Kim during the Winter '11 term at Bowling Green.

### Page1 / 2

js3 - 10 If product input is Caramel Pecan Bark Gift Tin...

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

View Full Document
Ask a homework question - tutors are online