## Whats the Answer?

functing calc(x) { if (x===1) { return 1; } else { return (x * calc(x-1)); } } var d = calc(8) What is the value of d?

Growing Ideas

There are 8 snooker balls, all 8 are of equal size and shape, 1 snooker ball is slightly heavier than the other 7. By using an antique balance scale, what would be least number of steps it would take in determining which snooker ball is heavier. Provide the steps.

Swap the values of the two variables without adding a third variable. X = 1 Y = 3 The end result should be X = 3 Y = 1 Now use the same logic to swap the following X = 70 Y = 18 Depict the formula that you would use to swap the values … Read more