Question: 1 Write three Scheme procedures to simulate these three gates: AND, OR, and NOT, shown in the diagram in Figure 1. Test your procedures using

1 Write three Scheme procedures to simulate these
1 Write three Scheme procedures to simulate these three gates: AND, OR, and NOT, shown in the diagram in Figure 1. Test your procedures using all possible input combinations. Hint: Lecture slides showed the implementation of a notgate in Scheme. [3 points] a a ID c :D c a +>~ c b b AN D OR N OT Figure 1. Logic gates AND, OR, and NOT, and their function denitions The test cases and expected outputs are given in the code template file hw12.rkt. Do not remove or edit these lines

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