KNOW:
BE ABLE TO:
Sample Exam Question:
An online bookstore uses the following data definition and variable to track customers' orders:
;; an order is a (make-order string list-of-string symbol) (define-struct order (name titles status)) ;; orderlist: list-of-order ;; stores the orders that customers have placed ;; where status is one of 'placed, 'paid, or 'shippedWrite a function remove-shipped that removes all orders with the status 'shipped from orderlist
;; remove-shipped: -> void ;; removes all orders with status 'shipped from orderlist ;; EFFECT: changes orderlist to exclude shipped orders