answersLogoWhite

0

An if structure statement is an example of a single control structure statement. It utilized the use of a single comparison criteria to direct the flow of a program.

I.e. - If the ball is yellow then throw it.

An if-then-else statement is an example of a dual control statement. It is utilized when the use of one comparison criteria is needed but when there are two different resulting actions that are needed

.

I.e. - If the ball is yellow then throw it, else bounce it.

A case structure is typically utilized when 3 or more comparison criteria are needed. Here a case is established for each comparison and within the case is the directions that must be followed based on the comparison criteria for the case being true.

I.e. - If the ball is yellow then throw it.

If the ball is green then hold it.

If the ball is blue then bounce it.

This a simplified explaination.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

How does trying a case in a small claims court differ from trying a case in a court of record?

how dose trying a case in small claims court differ from trying a case in a court of record


How does a fossilized bone differ from real bone?

structure


Why array is differ from structure?

An array is an aggregate of the same type. A structure is an aggregate of different types.


How two present answer sheets?

structure is a type of data structure whose individual elements can differ i type.the elements of structure are called mambers


What is a convenience structure?

case


How do you lymphatic vessels and veins differ in structure?

Lymphatics resemble veins in structure but have thinner walls and more valves.


How does the chemical structure of methamphetamine differ from dextroamphetamine?

The chemical structure of methamphetamine has an additional methyl group compared to dextroamphetamine.


How do the structure and location of a prokaryotic chromosomes differ from that of a eukaryotic chromosome?

because they do


How do the three major types of lipids differ in structure?

See the related link below to graphics illustrating the structure of phospholipids.


Do Eukaryotic cells differ from each animal?

Yes and no. They will all have the same basic structure and organelles but will differ mainly in the types of proteins that they produce.


What has the same numbers of atoms per molecule but differ in structure?

Structural isomers.


Why did Jefferson and hamilton differ in their view of the government structure?

Because they wanted it to be perfect