You are on page 1of 1

SET TotalPrice

WHILE ProductCode is not 0000000000

PRINT “Input Product Code: ”

READ ProductCode

IF length of ProductCode is less than 10

PRINT “Product Code Invalid”

CONTINUE

END IF

IF product code is 0000000000

BREAK

END IF

PRINT “Input Quantity”

READ quantity

IF quantity is less than 1

PRINT “ Quantity Is Invalid”

CONTINUE

END IF

PRINT “Input Price”

READ Price

IF Price is less than 1

PRINT “ Price Is Invalid”

CONTINUE

END IF

ADD Quantity Times Price to TotalPrice

END WHILE

PRINT TotalPrice

You might also like