Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions

Question

What is computer neworking ?

Answered: 1 week ago

Question

1. Prepare a flowchart of Dr. Mahalees service encounters.

Answered: 1 week ago