Basic Algebraic Math hacks

Q1 (Exponents):

A cube has a side length of 6 units. What is its volume?

216

Q2 (PEMDAS):

Evaluate the expression:

(7+14)*5/12 + 2

10.75

Q3 (Algorithm):

Write JavaScript code where you define variables and run commands that find the values of operations you apply onto them

%%javascript
// Define variables
let a = 7;
let b = 14;
let c = 5;
let d = 12;
let e = 2;

// Apply operations
let result = (a + b) * c / d + e;

console.log("The result is:", result);

<IPython.core.display.Javascript object>

Diagram showing mathematical operations