{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Algorithm for JS 1

Algorithm for JS 1 - 6 Output the total amount Print out...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Chenhao Michael Mai Computer Applications for Business Algorithm for JS 1 1. Start 2. Input: what is the name of the product? - > var productname 3. Input: how much is it? – >var price 4. Input: how many do you want? –> var quantity 5. Process : Price * quantity –> var total
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 6. Output: the total amount. Print out the receipt that says “Your order for”+ quanity+ “of “ + productname + “ has been received.”+ “The total is” +tota+ “.”...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online