9/72
21
SUMMARIZING SURVEY DATA
The following questionnaire was sent to 20 people.
OOES YOUR COMPUTER UNDERSTAND YOU?
Circle your answer.
YES
NO
The responses to the twenty questionnaires are shown below. Each response
is YES or NO.
YES
NO
YES
NO
NO
YES
YES
YES
NO
NO
NO
YES
NO
YES
The following table is a summary of the results.
RESPONSE
YES
NO
TOTAL
HOW MANY
8
12
20
YES
NO
NO
NO
Code the responses. Use 1 to represent YES and 2 to represent NO.
RESPONSE
CODE
YES
1
NO
2
The coded responses are shown below.
1
1
2
1
2
2
2
1
2
2
2
2
1
1
2
1
1
2
2
2
NO
NO
Write a program to summarize the data. Count YES responses (Code 1) in
register 01 and NO responses (Code 2) in register 02.
21-1