Question: ; Given the definitions below ( YOUTH , SENIOR, PRICE, DISCOUNT - PRICE, and ;; display - ticket - cost ) , write the step

; Given the definitions below (YOUTH, SENIOR, PRICE, DISCOUNT-PRICE, and
;; display-ticket-cost), write the step-by-step evaluation of this expression:
;;
;; (display-ticket-cost (+204))
;;
;; Be sure to show every intermediate evaluation step, including the original
;; expression and the final result.
;;
;; Your answer should follow the definition of display-ticket-cost below.
(define YOUTH 18)
(define SENIOR 65)
(define PRICE 10)
(define DISCOUNT-PRICE 5)
(define (display-ticket-cost age)
(if (or (< age YOUTH)(>= age SENIOR))
(string-append "Ticket price is $"(number->string DISCOUNT-PRICE))
(string-append "Ticket price is $"(number->string PRICE))))

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!