How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • Go back-and-forth until satisfied
    Rate the answer you receive.
Ask Kat Your Own Question
Kat
Kat, Consultant
Category: Programming
Satisfied Customers: 175
Experience:  Expert
110517830
Type Your Programming Question Here...
Kat is online now

How do i write an mips command to search file people.txt for

Customer Question

how do i write an mips command to search file people.txt for all the lines that contain pattern John and put those in a file matches.txt
JA: Is there a specific language you're coding in?
Customer: mips
JA: What's your objective? How can we solve this for you?
Customer: can you give me the command
JA: Anything else you want the programmer to know before I connect you?
Customer: no please hurry
Submitted: 21 days ago.
Category: Programming
Customer: replied 21 days ago.
h
Customer: replied 21 days ago.
this the question
Customer: replied 21 days ago.
please hurry
Customer: replied 21 days ago.
i need the answer now please
Expert:  Kat replied 21 days ago.

Welcome to JA, sorry to hear your having issues with your assignment.

What part of the question are you struggling with, for instance do you know what command you need to write to open and read from the text file?

Customer: replied 21 days ago.
File attached (3L6ZZPL)
Customer: replied 21 days ago.
answer that^
Expert:  Kat replied 21 days ago.

So you have a logical statement, what are you struggling with are you unsure how a logical statement would be formatted in MIPS?

Customer: replied 21 days ago.
i don’t know how to convert it
Customer: replied 21 days ago.
do you know the answer?
Customer: replied 21 days ago.
can you give it to me quickly as i need to submit this
Expert:  Kat replied 21 days ago.

This is an assignment, we are here to support you not provide information for plagiarism, since all information is public and accessible to the different university colleges.

Ok so you must first read the input into the buffer, do you know how to do that, or have you never come across MIPS before?

Expert:  Kat replied 21 days ago.

I have not heard back from you in some time, I would first refer to the video here and see if you can read the input from the the text file into the buffer, once you have got that working, then look at searching the text in the bugger for the string.