Lecture-22(nested ifs-cases)

Lecture-22(nested ifs-cases) - Decisions Select CASE...

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

View Full Document Right Arrow Icon
Decisions
Background image of page 1

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

View Full DocumentRight Arrow Icon
Select CASE Structure If we wish to take actions on the basis of a single variable, use Select CASE Select Case testexpression [Case expressionlist1 [Statements]] [Case expressionlist2 [Statements]] [Case Else [ElseStatements]] End Select
Background image of page 2
Example A B A B C 151613 79 151614 77.53891 151615 97.8745 151616 46.60943 151617 72.33151 151618 88.93808 151619 82.04402 151620 75.41266 151621 48.91185 151622 84.37832 151623 0.645404 151624 59.64364 151625 81.34319 151626 92.63908 151627 29.54679 151628 0.13302 151629 27.52639 151630 57.77492 151631 28.58643 151632 68.50182 151613 79 B 151614 77.53891 C 151615 97.8745 A 151616 46.60943 F 151617 72.33151 C 151618 88.93808 A 151619 82.04402 B 151620 75.41266 C 151621 48.91185 F 151622 84.37832 B 151623 0.645404 F 151624 59.64364 D 151625 81.34319 B 151626 92.63908 A 151627 29.54679 F 151628 0.13302 F 151629 27.52639 F 151630 57.77492 F 151631 28.58643 F 151632 68.50182 C
Background image of page 3

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

View Full DocumentRight Arrow Icon
If/Then/Elseif and Select Case They are both analogous In the previous example about grades, if you
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/27/2008 for the course PGE 310f taught by Professor Srinivasan during the Spring '08 term at University of Texas at Austin.

Page1 / 9

Lecture-22(nested ifs-cases) - Decisions Select CASE...

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

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