# 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: "
prompt "price: "
prompt "quantity: "
due = price * quantity
print "name price quantity total"
print name,price,quantity,due

## Similar Questions

1. ### Computer programming

Ok so the question is this: the manager of the Super Supermarket would like to be able to compute the unit price for products sold there. To do this, the program should input the name and price of an item and its weight in pounds and …
2. ### C programming

I'm suppose to write a program using functions and modules that accepts six names from the user and print it back to the screen. It should then ask the user which name they want deleted and print to the screen all the other names except …
3. ### Microeconomics:

Just needing to know if I have done the work correctly with this problem: For the total revenue and marginal revenue the answers are: Price \$20 Quantity 0 TR 0 MR 0 Price \$18 Quantity 1 TR 18 MR 18 Price \$16 Quantity 2 TR 32 MR 14 …
4. ### college/microeconomics

Just needing to know if I have done the work correctly with this problem: For the total revenue and marginal revenue the answers are: Price \$20 Quantity 0 TR 0 MR 0 Price \$18 Quantity 1 TR 18 MR 18 Price \$16 Quantity 2 TR 32 MR 14 …
5. ### programming

1. Write a structured algorithm that prompts the user to input two numbers. The algorithm should calculate and print the sum & product of the two numbers [21/2]
6. ### python 3

For this option, first ask the user how many items there will be. ("How many items will there be?
7. ### computers

compute the unit price for products sold the program should input the name and price of an item and its weight in pounds and ounces. Then it should determine and display the unit price write a pseudo code program that will allow a …
8. ### programming

Create three (3) one-dimensional arrays: Item Number, Quantity-on-hand and Unit Cost for 15 items. Input data into all the arrays. After the data is entered, read an arbitrary number of records containing an item number and quantity-ordered. …
9. ### programming

write a pseudocode to accept item name, price, and quality from a user and display the item name and it's total value. the total value can be calculated as the product of price and quality
10. ### Information technology

Write a structured algorithm that prompts the user to input the number of days in a month. Calculate and print the number of hours in the month appropriately labelled.

More Similar Questions