Upload
sup11
View
705
Download
1
Embed Size (px)
Citation preview
2. The Selection Structure
3. Figure 1-1: Decisions you might need to make today 4. Coding the Selection Structure in Visual Basic
5. Figure 1-2: Syntax of IfThenElseStatement
6. Figure1-3: lists the relational operators you can use in the IfThen..Else statement s condition Relational Operator Meaning = Equal to > Greater than >= Greater than orequal to < Less than=20000 Salary=20000 THEN
14. Flowchart
START INPUT Salary Salary >=20000 =x 15% =x 10% OUTPUT Salary STOP 15. Pseudo code
16. Message Box Message Box 3. Title 2. Control Msgbox 2.Icon 1. Promt 17. Syntax MessageBox
18. Icon VbCritical VbExclamation VbInformation Vbquestion 19. VbOKOnly VbokCancel VbYesNo VbYesNoCancel VbAbortRetryIgnore VbRetryCancel 20. coding Msgbox ,VbInformation+ VbYesnoCancel+ VbDefault2, MSGBOX 21. Net IF statement
22. Syntax
23. Example-1
24. Condition
25. Problem Definition
26. 27. 28. 29. Example-2
30. 31. 32. 33. 34.