Referenced from lesson Simple Inequalities

What would each of the following expressions evaluate to? Write your guesses in the space provided, and then take turns typing them into the computer.

1) (+ 1 4) will be

2) (> 0 5) will be

3) (/ 4 2) will be

4) (= 1 9) will be

5) (- 0 9) will be

6) (<= 2 2) will be

 

8) What does the function < do?

 

9) What does the function (string=?) do?

 

10) Write the contract(s) for any new function(s) that produce Booleans you’ve seen above in your Contracts page.

 

11) How many Numbers are there in the entire universe?

 

12) How many Strings are there in the entire universe?

 

13) How many Images are there in the entire universe?

 

14) How many Booleans are there in the entire universe?

What are they?

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). CCbadge Bootstrap:Algebra by Emmanuel Schanzer, Jen Poole, Ed Campos Jr, Flannery Denny, and Dorai Sitaram is licensed under a Creative Commons 4.0 Unported License. Based on a work at www.BootstrapWorld.org. Permissions beyond the scope of this license may be available by contacting schanzer@BootstrapWorld.org.