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...

What is the problem (if any) with the following Select Case block which is intended to determine the price of a movie depending on the patron's age?

``` Private Sub btnDisplay_Click(...) Handles btnDisplay.Click Dim age as Integer, price As Decimal age = CInt(InputBox("Enter your age:")) Select Case age Case Is >= 65 'Senior citizen price = 4.50D Case Is >= 5 'Regular price price = 6.00D Case Is >= 0 'Child (no charge with parents) price = 0 Case Else txtBox.Text = "Entry error" End Select End Sub ``` (A) Everyone will get in free at the child rate. (B) The output will always be "Entry error" (C) The Case Is statements have bad syntax. (D) There is nothing wrong.

Computer Science & Information Technology

Which OSI model layer picks the route packets take?

A. network B. presentation C. physical D. transport

Computer Science & Information Technology

You have been asked by your superior to configure all Cisco network switches to allow only acceptable MAC addresses through switch access ports. How is this accomplished?

a. Use the switchport port-security command to enable MAC filtering. b. Use the mac-limit command to prevent more than one MAC from being accepted. c. Use the allowed-mac command to filter by MAC address. d. Use the secure port mac-address command to limit the port to learned addresses only.

Computer Science & Information Technology

A major advantage of object-oriented (O-O) designs is that systems analysts can save time and avoid errors by using _____ objects.

A. dynamic B. feasible C. modular D. linear

Computer Science & Information Technology