Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a MIPS assembly language program that prompts the user to input two strings (each should be no longer than 50 characters including the null

Write a MIPS assembly language program that prompts the user to input two strings (each should be no longer than 50 characters including the null terminator). Your program should determine whether the second string is a substring of the first. If it is, then your program should print out the first index in which the second string appears in the first.

For example, if the first string is Hello World and the second string is lo, then the program should print out 3, i.e. the starting index of lo in Hello World. If the second string is not contained in the first string, then your program should print out -1.

!*!*!*!Please include psuedo-code/comments in C or C++ as assembly language is extremely hard to follow and this is only an intro class. I'm having a lot of trouble with this assignment. Thank you!*!*!*!

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_2

Step: 3

blur-text-image_3

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

Hound your answer to 2 significant digits

Answered: 1 week ago

Question

Family basic steps to socialization write a short note ?

Answered: 1 week ago

Question

What does physics deal with?

Answered: 1 week ago

Question

Enumerate the qualities of a salesman.

Answered: 1 week ago