Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

Students also viewed these Databases questions

Question

=+ When persuasion does not work?

Answered: 1 week ago