Brown
Title: Brown
Category: /Science & Technology
Details: Words: 2265 | Pages: 8 (approximately 235 words/page)
Brown
Category: /Science & Technology
Details: Words: 2265 | Pages: 8 (approximately 235 words/page)
A selection group consists of a test and two sets of one or more operations (statements). The test must be stated so that it yields a true or false result. One set of statements is performed when the outcome of the test is true. The other set is performed when the outcome is false. The flowchart in Figure 5-1 illustrates the flow of control through a selection group. The two sets of statements are mutually
showed first 75 words of 2265 total
You are viewing only a small portion of the paper.
Please login or register to access the full copy.
Please login or register to access the full copy.
showed last 75 words of 2265 total
other nonresident counter + 1.
End if.
End if.
If age is greater than 64, then
If state of residence = ‘Akansas', then
Senior resident counter = senior resident counter + 1.
Else
Senior nonresident counter = senior nonresident counter + 1.
End if.
Else
If state of residence = ‘Arkansas', then
Other resident counter = other resident counter + 1. 6.
Else
Other nonresident counter = other nonresident counter+ 1.
End if.
Endif.
(There are other solutions using state of residence not = Arkansas' and age is less than or equal to 64.)