start
read customerRecord
if quantityOrdered > 100 then
discount = .20
else
if quantityOrdered > 12 then
discount = .10
endif
endif
total = priceEach * quantityOrdered
total = total – discount * total
print total
return
this is the way i done it:
start
read customerRecord
perform discount ()
perform calculation ()
stop
perform discount ()
if quantityOrdered > 100 then
discount = .20
else
if quantityOrdered > 12 then
discount = .10
endif
endif
perform calculation ()
total = priceEach * quantityOrdered
total = total – discount * total
print total
return
IS IT RIGHT?
2007-10-09
06:46:15
·
2 answers
·
asked by
caleb
1
in
Computers & Internet
➔ Programming & Design