Examlex

Solved

Write a Multi-Way If-Else Statement That Evaluates a Persons Weight

question 24

Essay

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!


Definitions:

Need Eyeglasses

The requirement for corrective lenses due to vision impairments such as nearsightedness or farsightedness.

Proportion

A fraction, portion, or segment that is assessed in relation to its entire entity.

M&M Candy

A brand of small, multi-colored chocolate candies covered in a hard shell.

Probability

The likelihood that an event will happen, expressed numerically between 0 and 1.

Related Questions