JavaScript Algorithm

JavaScript Algorithm - by the discount rate 9 Grand total =...

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

View Full Document Right Arrow Icon
Akash Dalsania Computer Applications for Business Pavel 3 March 2011 section number 12 Algorithm 1. Start 2. ask customers name 3. ask customer what product they are interested in buying 4. ask customer price of the product 5. ask customer the products discount rate 6. ask customer how many products they want to purchase 7. Cost = the price of the product multiplied by the quantity they are buying 8. Discount = the price of the product multiplied by the quantity and also multiplied
Background image of page 1

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

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

Unformatted text preview: by the discount rate. 9. Grand total = cost of the items bought subtracted by the amount of discount provided. 10. create a receipt 11. End Ask for title Ask for first name Ask for discount Ask for price Start Ask for quantity cost = price*quantity grandtotal = cost - totaldiscount totaldiscount = price*quantity*discount End Output receipt...
View Full Document

{[ snackBarMessage ]}

Page1 / 2

JavaScript Algorithm - by the discount rate 9 Grand total =...

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