Question
Fill in the blanks for the code. Code is in c++ Decision Blocks //define constants #define LOW ____________ #define HIGH ____________ void main() { //declare
Fill in the blanks for the code. Code is in c++
Decision Blocks //define constants #define LOW ____________ #define HIGH ____________ void main() { //declare variables int ________________; //value to be tested variable //basic if structure ... if(_______________ _____ ______________) // test for equality variable to check EQ op test value { instruction 1; ... instruction N; } //basic if/else structure with multiple tests (for outside a range) // responds if any of the tests is true if(____________ _____ ___________ ____ ____________ _____ ___________) variable LT op test value OR op variable GT op test value { instruction true-1; ... instruction true-N; } else { instruction false-1; ... instruction false-N; }
//nested if/else structure with multiple tests (for inside a range) // responds if all the tests are true if(____________ _____ ___________ ____ ____________ _____ ___________) variable GTE op test value AND op variable LTE op test value { instruction true1-1; ... instruction true1-N; } else if(_______________ _____ ______________) //below range variable LT op test value { instruction true2-1; ... instruction true2-N; } else //above range { instruction false-1; ... instruction false-N; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started