Javastudy - Sheet1 Page 1 Every program is formed by...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Sheet1 Page 1 Every program is formed by combining as many sequence, selection, and repetiton staement as appropriate for the algorithm a procedure for solving a problem in terms of actions to execute and the order in which these action execute is called algorithm program control is specifying the order in which statements (actions) execute in a program pseudocode is an informal language that helps programmers develop algorithms without having to worry about the strict detai sequential execution is when statements in program executes one after the other in the order in which they are written Various java statements enable the programmer to specify that the next statement to execute is not necessarily the next one i go-to statements which was used in most programming langauge in earlier times which allows the programmer to specifiy a tr structured programming is used to eliminate go-to statements Bohm and Jacopini developed programs without any go-to statements. it was hard for programmers to shift their style to struc Bohm and Jacopini demonstrated that all programs could be written in terms of only three control structures- the sequence, th When we introduce Java's implementations of control structures, we will refer to them in the terminology of the Java Language sequence structure are built into java. workflow is also called the activity activity diagram are part of the UML Unified modeling language. It models the workflow of a portion of the software system. such workflow may include a portion of an algorithm, such as the sequence structure. action-state symbols rectangles with their left and right sides replaced with arcs curving outward. activity diagram contains action-state symbol, diamonds, circles and transition arrows activity diagram clearly shows how control structures operates action states represents actions to perform. it contains an action expression that specifies which particular action to perform.(a diamonds represents decision symbol guard condition can be true or false [grade >= 60] specified in square brackets next to the transition arrow. if guard condition i each transition arrow emerging from a decision symbol has a guard condition transition arrows represents the flow of activity- the order in which the actions occur the solid circle represents intial state of program the solid circle surrounded by a hollow circle at the bottom of activity diagram represents final state Sheet1 Page 2 rectangles with upper-rignt corners folded over are called UML notes (like comments in Java) explanatory remarks that descri state diagram models some behavior of a system activity diagram models the action that an object performs selection statements three types of it....
View Full Document

This note was uploaded on 05/08/2010 for the course COMPUTER 268546 taught by Professor Kouklamanis during the Spring '10 term at North Shore.

Page1 / 40

Javastudy - Sheet1 Page 1 Every program is formed by...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online