Define a data definition named LetterGrade that represents exactly the three strings "A", "B", and "C". Include the type comment, an interpretation, and the template for a function that consumes a LetterGrade.
Short answerAccepted answer
; LetterGrade is one of:
; - "A"
; - "B"
; - "C"
; interp. a letter grade earned by a student
#;
(define (fn-for-letter-grade lg)
(cond [(string=? lg "A") (...)]
[(string=? lg "B") (...)]
[(string=? lg "C") (...)]))