Each of the plots below was generated using the code (inequality comp-ineq (list -1 0 1.6 3 5.2 7 8.1 9)). Using the numbers 3 and 7, write the code to define comp-ineq for each plot.
Note: The example is defined using 0 and 8.1 rather than 3 and 7.

A numberline with 8 dots. The 3 red dots are located at -1, 0 and 9. The 5 green dots are located at 1.6, 3, 5.2, 7 and 8.1. The numberline is shaded blueish between 0 and 8.1

code: (define (comp-ineq x) (and (> x 0) (<= x 8.1)))

A numberline with 8 dots. The 7 red dots are located at -1, 0 1.6, 3, 7, 8.1 and 9. The green dot is located at 5.2. The numberline is shaded blueish between 3 and 7.

code:

A numberline with 8 green dots at -1, 0, 1.6, 3.2, 5.2, 7, 8.1 and 9.

code:

A numberline with 8 dots. The 6 green dots are located at -1, 0, 1.6, 7, 8.1 and 9. The red dots are located at 3 and 5.2. The numberline is shaded blueish to the left of 3 and to the right of 7.

code:

A numberline with 8 red dots at -1, 0, 1.6, 3.2, 5.2, 7, 8.1 and 9.

code:

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927). CCbadge Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.