VB NOTES PART 5

VB NOTES PART 5 - Group 1 ^ Unary + - *, / \ Mod...

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

View Full Document Right Arrow Icon
2/8 OR If score >= 90 Then Grade = “A” ElseIf score >=80 Then Grade = “B” ElseIf score>= 70 Then Grade= “C” ElseIf score >= 60 Then Grand= “D” Else Grade = “F” End If ---Logical operators: connectors for logical conditions [AndAlso; OrElse; Xor; Not] If gender = “Female” AndAlso _ Short-circuit evaluation Age >=65 Then If gender is Male, age is not checked seniorFemales +=1 End If If (cost/size) <1.5 Then… (occur problem if size=0) Instead If (size>0) AndAlso ((cost/size)<1.5 Then If gender = “Female” OrElse_ OrElse: either true or both true Age>= 65 Then And & Or-------------don’t short circuit ----Precedence (Group 1happen first, then 2 and 3 is last)
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: Group 1 ^ Unary + - *, / \ Mod +,-&amp; ? , ? Group 2 &lt;,&gt;,&lt;=,&gt;=,=,&lt;&gt; Group 3 AndAlso; OrElse; Xor; Not; And; Or If a*b &lt;= C/d AndAlso Not c+3 &lt;7 Then Graph notebook---Assignment Operators Dim Students As Integer = 3 Students +=5-------------------students=students +5 += *= \=-= /= ^= &amp;=---Integer data types Byte 1 byte (0-255) Char 2 bytes Boolean 2 bytes Short 2 bytes +/- 2^15-1 Integer 4 bytes Long 8 bytes----Floating Point data types Single 4 bytes 7 significant digits Double 8 bytes 14 significant digits Decimal 16 bytes 29 significant digits...
View Full Document

Page1 / 2

VB NOTES PART 5 - Group 1 ^ Unary + - *, / \ Mod...

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