CS156: Intro to C, Part I

Spring 2018

HW 4

CS156 HW4: Pangrams!                


The world seems to be filled with tired canines and springy vulpines!                 

For this assignment, you will write a program called pan.c that searches for pangrams, sentences that contain all 26 letters in the alphabet. It will search the file sentences, which will be assumed to contain one sentence per line. If the line is a pangram, display it, with its line number. At the end, display how many pangrams were found.                 

Sample Run                

Text like this is typed by the user.                 

%” is the shell prompt and not a part of your program.                 

    % cat sentences 
    The quick brown fox jumps over a lazy dog

    Pack my box with five dozen liquor jugs.
    Mr. John Oliver is 100% @*&^?!
    Now is the time for all good men to come to the aid of their country.
    The five boxing wizards jump quickly
    pi most assuredly does NOT equal 4294967295.7667711
    % c11 -Wall pan.c 
    % ./a.out
    1: The quick brown fox jumps over a lazy dog
    3: Pack my box with five dozen liquor jugs.
    4: YbOvgEznjLcpisKrauqmXTDwFh
    7: The five boxing wizards jump quickly
    4 pangrams found.
    % mv sentences sentences.save
    % date >sentences
    % ./a.out
    No pangrams found.


If you encounter “STACK FRAME LINK OVERFLOW”, then try this:

    export STACK_FRAME_LINK_OVERRIDE=ffff-ad921d60486366258809553a3db49a4a



How to submit your homework:                


    ~cs156/bin/checkin HW4 pan.c

How to receive negative points:                

Turn in someone else’s work.                 

User: Guest                 

Edit History Source

Modified: 2018-03-23T12:38                 

Apply to CSU | Contact CSU | Disclaimer | Equal Opportunity
Colorado State University, Fort Collins, CO 80523 USA
© 2018 Colorado State University
CS Building