VB NOTES PART 4 - evaluated, <...

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

View Full Document Right Arrow Icon
2/3 ---Algorithm: a series of specific steps to solve some problems ---Pseudocode: /`su:dou,koud/ : A form of structured English to design algorithms Halfway between English and some programming language ---control structures: which statement is executed next? (Each control structure has one entrance and one exit) Block world examples (juggle balls) Right 4 Down 12 (algorithm has to change due to the change of condition) Grab Up 3 Left 4 Down 1 Release Up 9 Anything computable can be computed using only 3 control structures You can next any of these 3 Sequence UML (Uniformed Modeling Language) Activity Diagram Statement 1 Statement 2 -------------------end Selection Condition? True Statement False Repetition ---Single Selection: If…Then If < condition> Then < statement1> ( < condition> is a Boolean expression when
Background image of page 1

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

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

Unformatted text preview: evaluated, &lt; statement2&gt; its either True or False) : &lt; Statement n&gt; End If----Relations Operators E.g. If score &gt;= 60 Then &gt;=------- --------greater than or equal Grade = Passed &lt;=------- --------less than or equal Else (refers to score &lt; 60) &lt;&gt;------- --------not equal Grade = Failed =---------is overloaded End if Statement 2 False Condition? True Statement 1 If score &gt;= 90 Then If score &gt;= 60 Then Grade = A Grade = D Else Else If score &gt;= 80 Then If score &gt;= 70 Then Grade = B Grade = C Else Else If score &gt;= 70 Grade = C [When its true = End If Else so score will not over count] If score &gt;= 60 Grade = D Else Grade = F End If End If End If End If...
View Full Document

This note was uploaded on 12/01/2011 for the course 6K 226 taught by Professor Staff during the Fall '10 term at University of Iowa.

Page1 / 2

VB NOTES PART 4 - evaluated, &amp;amp;lt;...

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

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