logoISU  

CS256 - Principles of Structured Design

Fall 2021

Displaying ./code/sternflCode/final/q3.txt

cs 256
11/11/2021

_____________________
name                                      QUIZ 3


DIRECTIONS:  Write your answer to each problem under the problem.


1.  Make the program file: q3.1.c
    It opens the file: /u1/h0/sternfl/256F/message and
    counts all two character sequences where the two characters are 
    equal. It prints out the final count.
    Example: the string "222 cats looked at 33  mice.." 
    has 6 sequences: two 2's, a second two 2's, two o's, two 3's, two spaces, 
    two periods. 




















2.  Make the program file q3.2.c
    It opens the file: /u1/h0/sternfl/256F/nums 
    that contains integers. The program counts
    the number of numbers in the file that are 
    even numbers. It prints the final count.