Write and test a MIPS assembly language program to search for all occurrences of a user supplied word in a text file. The program should do the following:
a) Open a text file "[login to view URL]" and read all characters into an array. Limit the length of the array to 10000 characters. The maximum number of characters to be read should be 10000 characters. If the file does not exist then the program should display an error message and terminates.
b) Display a message to ask the user to input a search word. Assume the search word is at most 10 characters long.
c) Read the user search word into another array of characters.
d) Search for all occurrences of the search word within the array of characters generated from the text file. Display the starting position of each occurrence of the search word within the array of characters. If the search word does not exist in the array, then display the message “Not found!”. Once completed, inform the user that the program is done by displaying a “Done.” message, and terminate the program. A sample run is shown below:
[login to view URL]: “Studying at KFUPM is fun. I like KFUPM!”
Enter a search word (at most 10 characters): KFUPM
KFUPM was found at position 13
KFUPM was found at position 34
Done.
Hi, I can provide this program in less than 48 hours. Thank you.
Relevant Skills and Experience
I have completed many similar project
Proposed Milestones
$45 USD - Start and finish the task