Like this document? Why not share!

- 6 problem solving with decisions by Rheigh Henley Cal... 6108 views
- 7 problem solving with loops by Rheigh Henley Cal... 10687 views
- 5 problem solving with the sequenti... by Rheigh Henley Cal... 7563 views
- 4 introduction to programming struc... by Rheigh Henley Cal... 1950 views
- 9 processing arrays by Rheigh Henley Cal... 1881 views
- 2 beginning problem solving concept... by Rheigh Henley Cal... 1324 views

3,435

-1

-1

Published on

No Downloads

Total Views

3,435

On Slideshare

0

From Embeds

0

Number of Embeds

0

Shares

0

Downloads

49

Comments

0

Likes

1

No embeds

No notes for slide

- 1. Data Structures and Algorithms The Case Logic Structure @ The case logic structure is made up of several or many sets of instructions, only one of which will be selected by the user and executed by the programmer. @ The form of the case logic structure is the following: CASE OF VARIABLE = constant 1: actions for VARIABLE = constant 1 = constant 2: actions for VARIABLE = constant 2 = constant 3: actions for VARIABLE = constant 3 . . OTHERWISE actions for VARIABLE = anything else END-OF-CASEProblem Solving with the Case Logic Structure *Property of STI Page 1 of 3
- 2. Data Structures and Algorithms The Case Logic StructureFlowchart Diagram for the Case Logic Structure A CASE OF VARIABLE = Constant 1 = Constant 2 = Constant 3 OTHERWISE INSTRUCTIONS INSTRUCTIONS INSTRUCTIONS INSTRUCTIONS BProblem Solving with the Case Logic Structure *Property of STI Page 2 of 3
- 3. Data Structures and Algorithms The Case Logic Structure A C1 = Constant 1 F T C2 = Constant 2 IF V = C1 C3 = Constant 3 F T IF V = C2 C4 = Constant 4 INSTRUCTIONS FOR v = C1 F T IF V = C3 INSTRUCTIONS FOR v = C2 F T IF V = C4 INSTRUCTIONS FOR v = C3 INSTRUCTIONS INSTRUCTIONS FOR v = C4 FOR v = C4Codes B @ Codes are characters, character strings, numbers, or some combination of these types of data that a programmer uses to name the options, the constants in a case structure.Problem Solving with the Case Logic Structure *Property of STI Page 3 of 3

No public clipboards found for this slide

×
### Save the most important slides with Clipping

Clipping is a handy way to collect and organize the most important slides from a presentation. You can keep your great finds in clipboards organized around topics.

Be the first to comment