Rewrite the switch statement below as a multiple-alternative if statement.

```
switch (jersey) {
case 11:
printf("I. Thomas\n");
break;

case 23:
printf("M. Jordan\n");
break;

case 33:
printf("S. Pippen\n");
break;

default:
printf("Player unknown\n");
}
```


```
if (jersey == 11)
printf("I. Thomas\n");
else if (jersey == 23)
printf("M. Jordan\n");
else if (jersey == 33)
printf("S. Pippen\n");
else
printf("Player unknown\n");
```

Computer Science & Information Technology

You might also like to view...

In a table frame, the sides that will have borders are specified.

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

Computer Science & Information Technology

A PowerPoint file with an Excel chart embedded in it is an example of a ________

A) source file B) destination application C) destination file D) source application

Computer Science & Information Technology

A form that sends entered data across a network or the Internet is called which of the following terms?

A. i-form B. e-form C. webform D. server form

Computer Science & Information Technology

What are the sublayers of the Data Link layer, and what do they do?

What will be an ideal response?

Computer Science & Information Technology