Question: In MIPS Assembly language coding on MARS 4.5: Develop a program that takes a hardcoded statement, and asks the user for two different input words
In MIPS Assembly language coding on MARS 4.5:
Develop a program that takes a hardcoded statement, and asks the user for two different input words such as "UCF" and "KNIGHTS". Any words less than 10 characters will be accepted into the input.
Then the output should find how many times the user input word is given in the hardcoded statement. (the frequency of the word)
This program should not be case sensitive and regardless of the way user inputs the words, it should correctly find how many words in the statement. It can find any word in the sentence. For example, the user inputs "was" and "the", it will count how many times those words are in the statement.
Hardcoded statement:
"The mascot of UCF was chosen as the Knights. The Knights of Pegasus was a submission put forth by the students, staff and facult. UCF's original mascot was the Citronaut."
Sample Output Example:

Please input first word: Knight (or KnIGhT, knight, ..) Please input second word: UCF (or ucf, UcF,... KNIGHT: 6 UCF: 3 Please input first word: Knight (or KnIGhT, knight, ..) Please input second word: UCF (or ucf, UcF,... KNIGHT: 6 UCF: 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
