Question: ;; ;; The following data design may have errors in it . Please fix the error or ;; errors that you find. Any changes you

;;
;; The following data design may have errors in it. Please fix the error or
;; errors that you find. Any changes you make should preserve the existing
;; design intent. Again, change only the parts of the code you really need
;; to change.
;;
;; Your solution must include @htdd tag, @dd-template-rules tag, and a NOT
;; commented fn-for-site template.
;;
(@htdd Site)
;; Site is one of:
;; - "Vancouver"
;; - "Okanagan"
;; - "Robson"
;; -"CDM"
;; interp. a UBC site
;;
(@dd-template-rules one-of
atomic-non-distinct
atomic-non-distinct
atomic-non-distinct
atomic-non-distinct)
(define (fn-for-site s)
(cond [(string=? s "Vancouver")(... s)]
[(string=? s "Okanagan")(... s)]
[(string=? s "Robson")(... s)]
[(string=? s "CDM")(... s)]))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!