Sales transaction
Pusedo is as follows
/get the cost of them items and add it to the total
when no onter items are found exit loop
if there are items continue loop //
item = y
total = 0
do while item = y
total = item + total
get cost of new item
if cost = 0 then item = n
loop
Print "BILL TOTAL = " + total
// minus discount
enter discount amt (in %) as da
discount = (da/100) * total
total = total - da
Print "DISCOUNT = " + discount
Print "new total " + total
//add vat
vat = (12/100) * total
total = total + vat
Print "VAT " + vat
Print "new Total " + total
//get pay
enter amt paid as amt
change = amt - total
Print "Paid " + amt
Print "change " + change
Print THANK YOU FOR SHOPPING AT FIXYA
×