Build a simple calculator to compute basic calculation of shape's area size, perimeter/circumference, or volume size.
- Numbers
- Several functions to run different kind of operations
- Calculated numbers
- Prepare all basic shape calculation you already learnt
- Wrap those operations into different kind functions based on the shapes
function calculateSquareArea(...) { ... }
function calculateSquarePerimeter(...) { ... }
function calculateCircleArea(...) { ... }
function calculateCircleCircumference(...) { ... }
function calculateCubeArea(...) { ... }
function calculateCubeVolume(...) { ... }
function calculateTubeArea(...) { ... }
function calculateTubeVolume(...) { ... }
// and much more
- Experiment to create variation and call some chain of different functions you already made with these new functions
calculateSquareArea(add(...))
calculateTubeVolumeWithCircle(calculateCircleArea())