Starting from:
$30

$24

Homework Assignment 3 Solution

You are going to write a complete C program which implements the following functionality:




You are given a file which contains lines of character strings of various sizes. Your program should read the given file and locate the following 5 strings:







Xanthos




Patara




Myra




Arycanda




Phaselis




The 5 constant strings can appear vertically or horizontally. Once all the strings are found, your program should print their head position and the orientation to the terminal.




Code it so that it reads a text file named input.txt




Remarks:




Strings which correspond to rows are separated by whitespace.

Maximum length of each row is 250

Maximum number of rows is 100

More products