Answer: 24
Step-by-step explanation:
1. Number Them
Elf and Dwarf = 1
Hobbit = 2
Wizard = 3
Man = 4
* Elf and Dwarf are put together so that they are always sitting together
2. Multiply
1 x 2 x 3 x 4 = 24
Answer:
x > y ? x : y
If x is greater than y, then x is the result of the expression else y is the result.
Step-by-step explanation:
The conditional operator (?:) that compares the values of the variables x and y is known as the ternary conditional operator. It evaluates a Boolean expression and returns the result of one of the two expressions, depending on whether the Boolean expression evaluates to true or false.
The syntax for the conditional operator is as follows:
condition ? consequent : alternative
The first part is the condition, the second part is the consequent and the last part is the alternative.
If the condition is true, the consequent statement is executed else the alternative statement is executed.
So since we get paid $10 per hour it just keeps going on depending on the amount of hours.
For example: I work 10 hours a week I get paid $100
the area is 180 cm. to find the perimeter you would do 15+15+14+14 to get 54 cm. So for area you do (l×w) which is 15×14=180.
What you do is time the mass of the golf ball by how many you have
0.046×12=0.552
then take that away from the final amount to get your answer
1-0.552=0.448
therefore the soccer ball has a mass of 0.448 kg