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.
                
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. YbOvgEznjLcpisKrauqmXTDwFh 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.11730943 % 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
sentences
in your current directory.
sentences
will be no longer than 80 characters.
Don’t forget space for the terminating '\0'
.
sentences
, in the current directory, can’t be opened,
complain to standard error and stop the program.
fclose
any file that you fopen
.
char
constants for char
values, not int ASCII values:
'A'
, not 65
.
main()
.
Use                 
~cs156/bin/checkin HW4 pan.c
Turn in someone else’s work.                 
User: Guest