You can think of x && y || z as equivalent to: int func (int x, int y, int z) { if (x) { if (y) { return true; } } if (z) { return true; } return false; } Since both x and y are fixed to be non-zero values the first return statement is always hit. thats what i think
Answer:
right the whole question
Step-by-step explanation:
if he sold 32 items this week last week he sold 20
H + c = 605
c = h + 55
h + h + 55 = 605
2h + 55 = 605
2h = 605 - 55
2h = 550
h = 550/2
h = 275 <== there were 275 hamburgers sold on Friday
c = h + 55
c = 275 + 55
C = 330...there were 330 cheeseburgers sold on Friday
Answer: 81
Step-by-step explanation:
Mean of four nos = 85
Score = 85 x 4 = 340
Deduct 97 from 340 = 243
Mean of three nos. 243/3 = 81
Answer:
d) f(x) = 5x + 2
Step-by-step explanation:
First we need to identify the variables and how they fit into the equation. in this case we know that the equation is f(x) = mx + b where f(x) is the total cost, m is the hourly cost, x is the number of hours bowled, and b is the price of the shoes.
Now, we need to solve for the hourly cost, so to do this we plug in all the known information to get 12 = m(2) + 2
To solve we need to isolate the variable by first subtracting 2 on both sides to get 10 = m(2) and then dividing both sides by 2 to get 5 = m.
Finally, since we now know that the hourly cost is $5 we can plug this information back into the equation to get f(x) = 5x + 2