Greg and Greg (G&G) is a locally owned company that specializes in making fuel
tanks for gas operated Radio Controlled (RC) recreational vehicles (see Figure 1).
Their newest tank contains a four-bit (4) sensor that indicates the level of gasoline (G)
in the tank. G&G has challenged your team to design and implement an embedded
system to display the levels of gasoline (G) in their tank according to the specifications
provided in Table 1 below. Unfortunately, only 2-Input NAND gates are available for
the actual implementation. Hint: If the sensor reads 0000 then G = 0 (i.e., the tank is
empty). Similarly, 1111, indicates that the tank is full.

Condition Desired System Response
G ≥ ¾ tank Low(L), Quarter (Q), ¾ (T) and Full (F) tank LEDs are active
½ tank ≤ G < ¾ tank Low(L), Quarter (Q), and ¾ (T) tank LEDs are active
¼ tank ≤ G < ½ tank Low(L) and Quarter (Q) tank LEDs are active
G < ¼ tank Only the Low (L) LED is active
G = 0 No LEDs are active