Advertisement
feagans

Untitled

Apr 27th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. Valid = false
  2. While (valid = false)
  3. DO index 1 to 9
  4. IF (new_item = itemArray[index]) THEN
  5. BasketArray[index] = new_item
  6. Valid = true
  7. ELSE IF
  8. Prompt “Please enter a new item”
  9. Get new_item
  10. ENDIF
  11. IF (quantity < = 9) THEN
  12. quantityArray[index] = quantity
  13. valid = true
  14. ELSE IF
  15. Prompt” Incorrect item quantity, Please enter a new quantity”
  16. Get quantity
  17. ENDIF
  18. IF (new_item = basketArray[index] THEN
  19. Prompt “That item already exists in the basket, Please enter a new item”
  20. Get new_item
  21. Valid = false
  22. ELSE
  23. Valid = true
  24. EndIF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement