"Functions" Please respond to the following:

Computer Science
Tutor: None Selected Time limit: 1 Day

The process of determining the order in which statements execute in a program is called decision making. Describe the best usage for if, if else, and switch statements and specify their best usage.Provide an example of each to support your response.

Jan 18th, 2015

if else and switch statements are the control statements of a program which controls the instructional flow of the code. these instructions  are bound to specific conditions. 

for example if (x >1) {

}

else {

}

If statement "if" will be executed if x>1 and if that is not true, else part will be executed. 

These types of instructions are useful for making decisions. for example deciding the greatest value of three variables or deciding lowest number of two values includes "if" "else" and switch statement. Switch is also if statement with a little changes syntax. 

Jan 18th, 2015

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Jan 18th, 2015
...
Jan 18th, 2015
May 28th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer