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

Dina y Glenn _____________ (ESTUDIAR) mucho. Alyssa ______________ (ESTUDIAR) para sus otras clases. Nicki y yo ____________ (ESTUDIAR) para la clase de matemát
FIND THE SLOPE please explain me how to do it
Proofread this text and correct the four apostrophe-related errors. Come and Join the CycloClub!   “It’s incredible fun. I should’ve joined years’ ago.” – John
what is 3y+14-2=0 in substitution
What is the values of x and y? (5x) + (9y)
A wheel on carmen's bike is 1.1 m in diameter. Carmen races the bicycle for 93m. How many times dose the wheel turn as the bicycle travels this distance
Convert 7 kl 345 L to liters. (Enter a number as an exact integer or decimal.)
Solve the inequality -24 < x - 3 - 8x. O A.x2-3 B.X2-9 C.x23 D.xs3
Write the sentence as an equation. r equals the quotient of z and 218
Scientific Notation.