akaylahrochester17 akaylahrochester17
  • 24-06-2021
  • Computers and Technology
contestada

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

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 30-06-2021

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

Answer Link

Otras preguntas

Vladimir buys 1.20 pounds of Skittles, 7/2 pounds of M&Ms, and 5.2 pounds of pretzels. If the candy cost $1.20 a pound and the pretzels cost $1.10 a pound
Ten more than the quotient of a number and 3 is 12.
Which best expresses the narrator's viewpoints towards Jasper? (The story is Jasper goes to Ecuador) A. The narrator thinks Jasper is foolish. B. The narrator s
I will give brainliest Write 3/4 as a simplified decimal. Show your steps and explain how you found your answer.
the points on the number line show how many pennies for children have how many more money does the child with the most pennies have than a child with a fewest
Adolf Hitler had an extreme hatred of _____.
3 minus 5 as an exponent
why do plants need nitrogen
Is Paul a complex character?
Please answer! Ignore the work it’s not right