Apply the rule of IF Statement

Write an IF statement that assigns the text "No" to the variable answer when the variable age is 65 or greater; otherwise, assign "Yes". Write an equivalent statement using the opposite condition, age < 65.


```
IF age > = 65 THEN
LET answer = "No"
ELSE
LET answer = "Yes"
END IF
```
Equivalent version:
```
IF age < 65 THEN
LET answer = "Yes"
ELSE
LET answer = "No"
END IF
```

Computer Science & Information Technology

You might also like to view...

When a Microsoft Word file is inserted into an OpenOffice Writer file, Writer inserts a ________ before the inserted document

A) section B) page break C) manual line break D) leader

Computer Science & Information Technology

In object-oriented programming, class definition files can be stored separately from programs that use them to instantiate objects, or class definitions can be combined with a program into one file.

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

Computer Science & Information Technology

A USB flash drive provides additional storage capability when it is plugged in.

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

Computer Science & Information Technology

The person who creates a meeting and sends the invitations is known as the meeting ____.

A. organizer B. scheduler C. creator D. initiator

Computer Science & Information Technology