Wednesday, February 18, 2009

Justin Gluck Gregory Donadio
1.If than statements are used to tell the computer what to when the item is <, <=, >, >=, =, <>. To make it do something to that. You can multiply that number divide it or do what ever you want. If else statements, contains two sets of intructions. One set is processed whn the condition is true, and the other whn it is false. Symbols for flowcharting are Circles, Dimonds, Oval, Regtangle, and parrellgram. Alwasy Start and end with oval. Parrellagram for show event takeing place or claculations. Dimond for if than statement. Rectangle is used for what to do if false or true.

1. If temperature > 75 Degrees Than display temperature End If

2. If GPA > 2.5 Display number Else messageLabel.text = "You need to improve your GPA"End If

COMPARISION OPERATORS

1. If 100 = 100 than you will make money.End If

2. If name <> Smith thandisplay all other namesEnd If

3. If Tax Rate > 7% Than give 1% dicountEnd if

UPPER/LOWER METHODS
1. If state.ToLower() = "SMITH" Than convert the uppercase version to lowercaseEnd If

2. If state.Upper() = "smith" Than convert the Lowercase version to UppercaseEnd If

No comments: