"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

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Jan 18th, 2015
...
Jan 18th, 2015
Feb 21st, 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