Back Edit Delete

A parking garage has levels numbered 1 through 8 inclusive. Define a data definition named LevelNum with a precise type comment, an interpretation, and the basic template for a function that consumes a LevelNum.

Short answer

Accepted answer

; LevelNum is Integer[1,8]
; interp. a legal parking-garage level from 1 through 8
#;
(define (fn-for-level-num n)
(... n))