Programming



Pseudocade
start

Get the name of an item and store it a suitable label, Item

Get the price of the item and store it in a suitable variable, price

Get the quantity of the item and store it in a suitable variable, quantity

Set the cost to price multiplied by quantity

Output the the quantity, item, price and cost with suitable labels

stop



Structured Program
start

Prompt the user to enter the name of the item

Read name

Prompt the user to enter the price of the item

Read price

Prompt the user to enter the quantity bought

Read quantity

Output the headings"Quantity, Item, Price, Cost"

Output quantity, item, price Cost

stop



Qbasic Programming
start

INPUT "Enter the name of the item"; nam$

INPUT "Enter the price of the item"; price

INPUT "Enter the quantity of the item"; quantity

Cost = price * quantity

PRINT "QUANTITY","ITEM", "PRICE", "COST"

PRINT quantity, item, price, Cost

end

I had a programming page I lost it