
In my previous post I mentioned assertions and assumptions in code. I just finished writing a bit of code that could potentially use an assertion, so i thought I would share it as an example: int getBarometricLevel(float height){ if(height < barametricHeight[1]){ return 0; }else if (height < barametricHeight[2]){ return 1; }else if (height < barametricHeight[3]){…

