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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!