Programming in Scheme solution

$24.99

Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment

Description

5/5 - (3 votes)

For this programming assignment, you will be writing two short programs in Scheme. Please
submit your two Scheme programs in a zip file and upload them to Canvas under Assignment 3.
Name your zip file using the following format: assignment3_username.zip.
Question 1
Define a Scheme function named between so that (between I J K) returns true iff K is an integer
inclusively between I and J.
Question 2
Define a Scheme function p so that (p X) is true if X is a list consisting of n 1’s followed by n 0’s for
some integer n.
(p ‘(1 1 0 0)) => #t
(p ‘( 0 1 )) => #f
(p ‘(1 1 1 0)) => #f