2
answers
0
watching
153
views
4 Jul 2018

4. 18 marks] Consider the following Scheme code: idefine (eval vi v2) (cora (and (> vl 0) (> V2 C)) (+ vl v2) 2)1 [(or 1> v! 0) (> v2 O)) (max v: v2) [else 'regative-valcos:)) a) [2 marks Write the contract for eval. b) [2 marks) Write a purpose for eval. c) 14 marks Write 4 separate, distinct tests for eval. (check-expect (check-expect (check-expect (check-expoco

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Jean Keeling
Jean KeelingLv2
6 Jul 2018
Already have an account? Log in

Related questions

Related Documents

Weekly leaderboard

Start filling in the gaps now
Log in