Question: ( 1 0 points ) Write a Scheme procedure ( manhattan a b ) which, given two pairs representing two points on the Cartesian coordinate

(10 points) Write a Scheme procedure (manhattan a b) which, given two pairs representing two points on the Cartesian coordinate system, returns the Manhattan distance between the two points.
For example:
>(manhattan '(-1.4)'(1.8))
6
>(manhattan '(-4.-3)'(6.3))
16
Copy your Scheme code without formatting in the box below:

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 Programming Questions!