Respuesta :

Answer:

The algorithm is as follows:

input name

input price

input quantity

amount = price * quantity

print name

print price

print quantity

print amount

Explanation:

The next three lines get input for product name, price and quantity bought

input name

input price

input quantity

This calculates the amount

amount = price * quantity

The next four lines print the product name, price, quantity bought and the calculated amount

print name

print price

print quantity

print amount