200k views
5 votes
Write relational expressions to express the following conditions (use variable names of your own choosing).

a. A person’s age is equal to 30
b. A person’s temperature is greater than 98.6
c. A person’s height is less than 6 feet
d. The character input is m
e. A person’s age is equal to 30 and the person is taller than 6 feet
f. The current day is the 15th of the 1st month

User NineBerry
by
8.3k points

1 Answer

2 votes

Final answer:

Relational expressions can be used to express conditions such as a person's age, temperature, height, character input, and more.

Step-by-step explanation:

a. A person's age is represented by the variable age, so the relational expression would be age = 30.

b. A person's temperature is represented by the variable temperature, so the relational expression would be temperature > 98.6.

c. A person's height is represented by the variable height, so the relational expression would be height < 6.

d. The character input is represented by the variable input, so the relational expression would be input = 'm'.

e. A person's age is represented by the variable age and their height is represented by the variable height, so the relational expression would be age = 30 && height > 6.

f. The current day is represented by the variable day and the month is represented by the variable month, so the relational expression would be day = 15 && month = 1.

User NewToJS
by
8.2k points