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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post by answerhappygod »

Write A Mips Assembly Language Program That Prompts The User To Input Two Strings Each Should Be No Longer Than 50 Char 1
Write A Mips Assembly Language Program That Prompts The User To Input Two Strings Each Should Be No Longer Than 50 Char 1 (90.26 KiB) Viewed 29 times
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply