CS100 Lecture Notes - Lecture 11: Molar Mass
Document Summary
Keep them in your labs folder, with the name liqj for lab i, question j. This lab makes use of the following structure and data de nitions: (de ne-struct t-node (label children)) ;; a general tree (gen-tree) is either a string or a structure (make-t-node l c), where l is a string and c is a tree-list. ;; a tree-list is either t is a gen-tree or (cons t tlist), where (cons t empty), where t is a gen-tree and tlist is a tree-list. (de ne-struct single-product (name origin)) ;; a single-product is a structure (make-single-product n o), where n is a string and: is a string denoting the country of origin. (de ne-struct sales-product (id prod)) ;; a sales-product is a structure (make-sales-product i p), where i is an integer and p is either a single-product or a product-list. empty or (cons sp pl), where. ;; a product-list is either sp is a sales-product and pl is a product-list.