answersLogoWhite

0

Switch case can be flowcharted using a diamond for each case, with a right branch for true and a down branch for false. The false branch simply connects to the next case. The true branch connects to the statement that should be executed for that case. Where multiple cases result in the same statement, the true branches should converge upon that statement. The execution path from the statement(s) should converge with the final false branch of the switch case.

In this case, your switch case might be as as follows:

print %letter%

switch lowercase (%letter%)

{

case 'a':

case 'e':

case 'i':

case 'o':

case 'u':

print line " is vowel"

break;

default:

print line " is not vowel"

}

Thus you will have a column of diamonds for each case with false branches linking downwards from one diamond to the next. The statement for case 'a', 'e', 'i', 'o' and 'u' is the same, so their true branches (extending to the right) will converge upon the 'print line " is vowel"' statement which must be placed to the right of the case diamonds. The default case's true branch leads to the 'print line " is not vowel"' statement. Both these statements will then converge with the false branch from the default case, marking the end of the switch case.

Note that, logically, there is no false branch from a default case, thus this link may be omitted. However, all links from all statements must still converge below the default case.

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions

Do the control module for light's have anything to do with the transmission?

No, one is electrical wether it be a relay or a contact or just a switch. And the transmission is totally mechanical.


What does roll on the wall mean in drama?

you write about a specific character wether real or not and tell their age and give them an interesting personality


How do you spell wether as in wether you like it or not?

Whether


What is a wether sheep?

A wether sheep is a male sheep with out ''junk''


What does wether a goat mean?

A "wether" is a castrated male goat, castrated male sheep are also called Wethers.


What is the definition of a wether in relation to sheep?

A wether is a castrated male sheep.


Could you write a assembly language program in tasm To check whether a given number present in a sequence of given memory location containing the string to be checked in 8086?

8086 assembly language program to check wether given number is perfect or not


Does wether mean a male sheep?

A wether is a castrated male sheep. A ram is an entire male sheep.


Is whale watching fun?

depends on the prefrence wether you like waled in the first place wether expensises


What is a wether Nigerian goat?

A wether is a male sheep or male goat that has been castrated.


Where is the Ford cruise control disconnect switch?

Answerif your looking for the switch that controls wether its on or off its located on the wsteerin wheel with other controls(10/18/2009) Are you are looking for the Ford cruise control deactivation switch now being recalled on 4.5 million vehicles? If so the switch on some vehicles can be found on the brake master cylinder. On my vehicle it was a red in color and was found on the end of the master cylinder.


What is the definition of a wether in the goat world?

A wether is a castrated male goat. Wethers are commonly kept in goat herds for their calm temperament and ability to graze without the distraction of breeding behaviors.