In the following problems, the variable color code will contain only integer values. There are three valid codes: 1 = Red, 2 = Blue, 3 = Yellow. All other codes are invalid.

Write a single-line IF statement that outputs the message "Invalid Code" when color_code is less than 1.
Write a single-line IF statement that outputs the message "Invalid Code"
when color_code is greater than 3


```
IF color_code > 3 THEN OUTPUT "Invalid Code"
```

Computer Science & Information Technology

You might also like to view...

What is the maximum length of a FlexStack or FlexStack Plus cable?

A) 5 meters B) 3 meters C) 1 meter D) 10 meters

Computer Science & Information Technology

Creating a PivotTable report in Excel requires many steps.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The much smaller LTE SIM is referred to as a(n) ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Another name for each dot that can be produced on a monitor?

A. Resolution B. Contrast C. Pixel D. DPI

Computer Science & Information Technology