Post a New Question

programming

posted by .

3. Write a structured algorithm that prompts the user to input the name and the price of an item and the quantity purchased. It should print the name, price, quantity and amount due with appropriate labels.

  • programming -

    using separate prompts, do something like this:

    prompt "name: "
    read name
    prompt "price: "
    read price
    prompt "quantity: "
    read quantity
    due = price * quantity
    print "name price quantity total"
    print name,price,quantity,due

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

More Related Questions

Post a New Question