INSY 3433 Chapter Notes - Chapter 3: Switch Statement, Increment And Decrement Operators, Pariah Dog

43 views4 pages

Document Summary

Chapter 3: algorithm is a procedure for solving a problem in terms of the action to execute & the order in which those actions execute, program control is specifying the order in which statements execute in a program. Pseudocode: pseudocode is an informal language that helps a programmer develop algorithms w/out having to worry about the strict details of java language syntax, pseudocode doesn"t execute on computers. System. out. println( passed ); if else double-selection statement if else double-selection statement allows programmer to specify an action to perform when the condition is true & another action when condition is false: ex: if (grade >= 60) System. out. println( passed ): program can test multiple cases by placing if else statements inside other if else statements else. System. out. println( failed ); to create nested if else statements: ex: if (studentgrade >= 90) System. out. println( c ); else if (studentgrade >= 80) else if (studentgrade >= 70) else if (studentgrade >= 60) else.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents