Write a multi-way if-else statement that evaluates a persons weight on the following criteria:

A
weight less than 115 pounds, output: Eat 5 banana splits! A weight between 116 pounds and 130
pounds, output: Eat a banana split! A weight between 131 pounds and 200 pounds, output: Perfect!
A weight greater than 200 pounds, output: Plenty of banana splits have been consumed!

```
if(weight <= 115)
System.out.println("Eat 5 banana splits!");
else if(weight <= 130)
System.out.println("Eat a banana split!");
else if(weight <=200)
System.out.println("Perfect!");
else
System.out.println("Plenty of banana splits have been consumed!");
```

Computer Science & Information Technology

You might also like to view...

_________ is the way in which the components are interrelated.

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

Computer Science & Information Technology

After the ith iteration of the selection sort:

a. The smallest i items of the array will be sorted into decreasing order in the first i elements of the array. b. The largest i items of the array will be sorted into decreasing order in the last i elements of the array. c. The smallest i items of the array will be sorted into increasing order in the first i elements of the array. d. None of the above.

Computer Science & Information Technology