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.

3 answers

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
Can you please put the answer in a table so I can understand it please
Write a program that prompts the user to enter the original price and class of the
item and then determines the total price as follow