Extra Credit 3

Due: May 25, 2023
Points: 30


In the homework, you wrote two programs that read in and sorted words. The “word” was defined as any sequence of alphanumerics. But this did not take into account words split over two lines. For example,


hel-
lo
is really the word “hello”. The two parts are separated by a hyphen, perhaps some space, a newline, and perhaps more space.

For this extra credit, take your program wordsort1.c and modify it so it will handle words that are split over 2 lines, as above.


UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: mabishop@ucdavis.edu
ECS 36A, Programming & Problem Solving
Version of May 15, 2023 at 4:40PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh