diff --git a/CM2010 Software Design and Development/Topic 3/9.3.7 Assertions/a.exe b/CM2010 Software Design and Development/Topic 3/9.3.7 Assertions/a.exe new file mode 100644 index 0000000..31af32d Binary files /dev/null and b/CM2010 Software Design and Development/Topic 3/9.3.7 Assertions/a.exe differ diff --git a/CM2010 Software Design and Development/Topic 3/9.3.7 Assertions/asserter.cpp b/CM2010 Software Design and Development/Topic 3/9.3.7 Assertions/asserter.cpp new file mode 100644 index 0000000..49b91ef --- /dev/null +++ b/CM2010 Software Design and Development/Topic 3/9.3.7 Assertions/asserter.cpp @@ -0,0 +1,11 @@ +#include + +int main() +{ + double sensorReading = 165500; + unsigned short storedValue = sensorReading; + + assert(storedValue == sensorReading); + + return 0; +} \ No newline at end of file