SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
WRITE THE PROGRAM IN MIPS LANGUAGE ONLY THAT WORKS WITH MARS
SIMULATOR
(DONT COPY & PASTE FROM CHATGPT IT GIVES ANSWER WITH ERROR I HAVE
TRIED IT 100 TIMES BY NOW IT DOESNT SOLVE PROBLEM)
(I WROTE THAT IN BOLD BECAUSE PREVIOUS 2 EXPERT WHO ANSWERED COPIED
FROM CHATGPT)
A palindrome is a word or phrase that reads the same from left to right as right to left. A simple
palindrome is kayak, for example. Other rules are that you ignore punctuation and letter case.
For example, Madam, Im Adam is a palindrome despite commas, spaces, and upper and lower
case differences. Palindromes can also contain digits, such as 12421.
Write a program in MIPS language that works in MARS Simulator that does the following
1. Request a string from the user. If it is zero length (the first character is n) exit the program.
2. Determine if the string is a palindrome. If so, print Palindrome. If not, print Not a
palindrome.
3. Return to request another string.
Program structure:
1) You can assume no input string is longer than 200 characters.
2) You must write a function that determines whether the string is a palindrome. Call this with
the address of the string in $a0. This function must be recursive. That is, it must test whether
the initial string might be a palindrome and return true if it the outer two characters match and
false if they dont, meaning if you return false at any level, stop the recursive calls and return
false.
3) Within this function, you must call another function that removes anything that isnt a letter
or a number.
4) Within the second function, call a third function that converts lower case to upper case so
your comparisons work properly.
5) Finally, call your recursive palindrome function.
6) You should have two files. The first has the main body of your code that requests a string,
calls a function that checks a palindrome, which is item 2, above plus initialization code. The
second file has any subroutines you may need, such as removing punctuation and converting
case.

Contenu connexe

Similaire à WRITE THE PROGRAM IN MIPS LANGUAGE ONLY THAT WORKS WITH MARS SIMULAT.pdf

Scala Language Intro - Inspired by the Love Game
Scala Language Intro - Inspired by the Love GameScala Language Intro - Inspired by the Love Game
Scala Language Intro - Inspired by the Love GameAntony Stubbs
 
(4) cpp automatic arrays_pointers_c-strings_exercises
(4) cpp automatic arrays_pointers_c-strings_exercises(4) cpp automatic arrays_pointers_c-strings_exercises
(4) cpp automatic arrays_pointers_c-strings_exercisesNico Ludwig
 
How to make fewer errors at the stage of code writing. Part N1.
How to make fewer errors at the stage of code writing. Part N1.How to make fewer errors at the stage of code writing. Part N1.
How to make fewer errors at the stage of code writing. Part N1.PVS-Studio
 
How to make fewer errors at the stage of code writing. Part N1
How to make fewer errors at the stage of code writing. Part N1How to make fewer errors at the stage of code writing. Part N1
How to make fewer errors at the stage of code writing. Part N1Andrey Karpov
 
Task Perform addition subtraction division and multiplic.pdf
Task Perform addition subtraction division and multiplic.pdfTask Perform addition subtraction division and multiplic.pdf
Task Perform addition subtraction division and multiplic.pdfacsmadurai
 
What is the general format for a Try-Catch block Assume that amt l .docx
 What is the general format for a Try-Catch block  Assume that amt l .docx What is the general format for a Try-Catch block  Assume that amt l .docx
What is the general format for a Try-Catch block Assume that amt l .docxajoy21
 
C programming & data structure [character strings & string functions]
C programming & data structure   [character strings & string functions]C programming & data structure   [character strings & string functions]
C programming & data structure [character strings & string functions]MomenMostafa
 
COMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docx
COMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docxCOMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docx
COMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docxdonnajames55
 
Part I (1.5 points) Write a C++ program that reads a line from the key...
Part I (1.5 points)        Write a C++ program that reads a line from the key...Part I (1.5 points)        Write a C++ program that reads a line from the key...
Part I (1.5 points) Write a C++ program that reads a line from the key...hwbloom104
 
Questions4
Questions4Questions4
Questions4hccit
 
CMPS 5P Assignment 3 Spring 19Instructions1. The aim o.docx
CMPS 5P Assignment 3 Spring 19Instructions1. The aim o.docxCMPS 5P Assignment 3 Spring 19Instructions1. The aim o.docx
CMPS 5P Assignment 3 Spring 19Instructions1. The aim o.docxmary772
 

Similaire à WRITE THE PROGRAM IN MIPS LANGUAGE ONLY THAT WORKS WITH MARS SIMULAT.pdf (15)

Scala Language Intro - Inspired by the Love Game
Scala Language Intro - Inspired by the Love GameScala Language Intro - Inspired by the Love Game
Scala Language Intro - Inspired by the Love Game
 
(4) cpp automatic arrays_pointers_c-strings_exercises
(4) cpp automatic arrays_pointers_c-strings_exercises(4) cpp automatic arrays_pointers_c-strings_exercises
(4) cpp automatic arrays_pointers_c-strings_exercises
 
How to make fewer errors at the stage of code writing. Part N1.
How to make fewer errors at the stage of code writing. Part N1.How to make fewer errors at the stage of code writing. Part N1.
How to make fewer errors at the stage of code writing. Part N1.
 
How to make fewer errors at the stage of code writing. Part N1
How to make fewer errors at the stage of code writing. Part N1How to make fewer errors at the stage of code writing. Part N1
How to make fewer errors at the stage of code writing. Part N1
 
Task Perform addition subtraction division and multiplic.pdf
Task Perform addition subtraction division and multiplic.pdfTask Perform addition subtraction division and multiplic.pdf
Task Perform addition subtraction division and multiplic.pdf
 
Lecture No 13.ppt
Lecture No 13.pptLecture No 13.ppt
Lecture No 13.ppt
 
What is the general format for a Try-Catch block Assume that amt l .docx
 What is the general format for a Try-Catch block  Assume that amt l .docx What is the general format for a Try-Catch block  Assume that amt l .docx
What is the general format for a Try-Catch block Assume that amt l .docx
 
C programming & data structure [character strings & string functions]
C programming & data structure   [character strings & string functions]C programming & data structure   [character strings & string functions]
C programming & data structure [character strings & string functions]
 
COMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docx
COMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docxCOMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docx
COMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docx
 
Java programlist (1)
Java programlist (1)Java programlist (1)
Java programlist (1)
 
Fortran 90 Basics
Fortran 90 BasicsFortran 90 Basics
Fortran 90 Basics
 
Part I (1.5 points) Write a C++ program that reads a line from the key...
Part I (1.5 points)        Write a C++ program that reads a line from the key...Part I (1.5 points)        Write a C++ program that reads a line from the key...
Part I (1.5 points) Write a C++ program that reads a line from the key...
 
Questions4
Questions4Questions4
Questions4
 
CMPS 5P Assignment 3 Spring 19Instructions1. The aim o.docx
CMPS 5P Assignment 3 Spring 19Instructions1. The aim o.docxCMPS 5P Assignment 3 Spring 19Instructions1. The aim o.docx
CMPS 5P Assignment 3 Spring 19Instructions1. The aim o.docx
 
Php Learning show
Php Learning showPhp Learning show
Php Learning show
 

Plus de AMIOPTICPLUS

You are a doctor and come across a patient currently fighting an inf.pdf
You are a doctor and come across a patient currently fighting an inf.pdfYou are a doctor and come across a patient currently fighting an inf.pdf
You are a doctor and come across a patient currently fighting an inf.pdfAMIOPTICPLUS
 
You are a longtime auditor of Oval Tables Inc. In the last few days .pdf
You are a longtime auditor of Oval Tables Inc. In the last few days .pdfYou are a longtime auditor of Oval Tables Inc. In the last few days .pdf
You are a longtime auditor of Oval Tables Inc. In the last few days .pdfAMIOPTICPLUS
 
Yo (Rohit) me un� al proyecto CVS Caremark en TCS-Noida en noviembre.pdf
Yo (Rohit) me un� al proyecto CVS Caremark en TCS-Noida en noviembre.pdfYo (Rohit) me un� al proyecto CVS Caremark en TCS-Noida en noviembre.pdf
Yo (Rohit) me un� al proyecto CVS Caremark en TCS-Noida en noviembre.pdfAMIOPTICPLUS
 
Yep Company is considering investing in Project G or Project H. Proj.pdf
Yep Company is considering investing in Project G or Project H. Proj.pdfYep Company is considering investing in Project G or Project H. Proj.pdf
Yep Company is considering investing in Project G or Project H. Proj.pdfAMIOPTICPLUS
 
Yandie Izzo gestiona una estrategia de crecimiento de dividendos par.pdf
Yandie Izzo gestiona una estrategia de crecimiento de dividendos par.pdfYandie Izzo gestiona una estrategia de crecimiento de dividendos par.pdf
Yandie Izzo gestiona una estrategia de crecimiento de dividendos par.pdfAMIOPTICPLUS
 
Y=(1S)(YT)+I+G+a((EP)(P))m(YT).pdf
Y=(1S)(YT)+I+G+a((EP)(P))m(YT).pdfY=(1S)(YT)+I+G+a((EP)(P))m(YT).pdf
Y=(1S)(YT)+I+G+a((EP)(P))m(YT).pdfAMIOPTICPLUS
 
y is that corporations must create value for all of their stakeholders.pdf
y is that corporations must create value for all of their stakeholders.pdfy is that corporations must create value for all of their stakeholders.pdf
y is that corporations must create value for all of their stakeholders.pdfAMIOPTICPLUS
 
xx warlance stacdard dewotson.pdf
xx warlance stacdard dewotson.pdfxx warlance stacdard dewotson.pdf
xx warlance stacdard dewotson.pdfAMIOPTICPLUS
 
Xavier and Yolanda have original investments of $50,700 and $102,300.pdf
Xavier and Yolanda have original investments of $50,700 and $102,300.pdfXavier and Yolanda have original investments of $50,700 and $102,300.pdf
Xavier and Yolanda have original investments of $50,700 and $102,300.pdfAMIOPTICPLUS
 
X has the following probability distribution P(X) Compute the expect.pdf
X has the following probability distribution P(X)  Compute the expect.pdfX has the following probability distribution P(X)  Compute the expect.pdf
X has the following probability distribution P(X) Compute the expect.pdfAMIOPTICPLUS
 
Written descriptions of how to input data and how to invoke the func.pdf
Written descriptions of how to input data and how to invoke the func.pdfWritten descriptions of how to input data and how to invoke the func.pdf
Written descriptions of how to input data and how to invoke the func.pdfAMIOPTICPLUS
 
You get a bunch of photos with certain information about them. With .pdf
You get a bunch of photos with certain information about them. With .pdfYou get a bunch of photos with certain information about them. With .pdf
You get a bunch of photos with certain information about them. With .pdfAMIOPTICPLUS
 
writing a paper about Migraine using these 3 articles Migraine A Hi.pdf
writing a paper about Migraine using these 3 articles Migraine A Hi.pdfwriting a paper about Migraine using these 3 articles Migraine A Hi.pdf
writing a paper about Migraine using these 3 articles Migraine A Hi.pdfAMIOPTICPLUS
 
You are working as a network engineer for an IT company called YorkI.pdf
You are working as a network engineer for an IT company called YorkI.pdfYou are working as a network engineer for an IT company called YorkI.pdf
You are working as a network engineer for an IT company called YorkI.pdfAMIOPTICPLUS
 
You are the PM on a software upgrade project. You find out from a se.pdf
You are the PM on a software upgrade project. You find out from a se.pdfYou are the PM on a software upgrade project. You find out from a se.pdf
You are the PM on a software upgrade project. You find out from a se.pdfAMIOPTICPLUS
 
you are opening Tim Hortons in Nigeria.complete the sections of the .pdf
you are opening Tim Hortons in Nigeria.complete the sections of the .pdfyou are opening Tim Hortons in Nigeria.complete the sections of the .pdf
you are opening Tim Hortons in Nigeria.complete the sections of the .pdfAMIOPTICPLUS
 
You are meeting your client, Henry, who is 70 years old. Henry took .pdf
You are meeting your client, Henry, who is 70 years old. Henry took .pdfYou are meeting your client, Henry, who is 70 years old. Henry took .pdf
You are meeting your client, Henry, who is 70 years old. Henry took .pdfAMIOPTICPLUS
 
You are Maria Herrera and have been recently promoted to the positio.pdf
You are Maria Herrera and have been recently promoted to the positio.pdfYou are Maria Herrera and have been recently promoted to the positio.pdf
You are Maria Herrera and have been recently promoted to the positio.pdfAMIOPTICPLUS
 

Plus de AMIOPTICPLUS (20)

You are a doctor and come across a patient currently fighting an inf.pdf
You are a doctor and come across a patient currently fighting an inf.pdfYou are a doctor and come across a patient currently fighting an inf.pdf
You are a doctor and come across a patient currently fighting an inf.pdf
 
You are a longtime auditor of Oval Tables Inc. In the last few days .pdf
You are a longtime auditor of Oval Tables Inc. In the last few days .pdfYou are a longtime auditor of Oval Tables Inc. In the last few days .pdf
You are a longtime auditor of Oval Tables Inc. In the last few days .pdf
 
Yo (Rohit) me un� al proyecto CVS Caremark en TCS-Noida en noviembre.pdf
Yo (Rohit) me un� al proyecto CVS Caremark en TCS-Noida en noviembre.pdfYo (Rohit) me un� al proyecto CVS Caremark en TCS-Noida en noviembre.pdf
Yo (Rohit) me un� al proyecto CVS Caremark en TCS-Noida en noviembre.pdf
 
Yep Company is considering investing in Project G or Project H. Proj.pdf
Yep Company is considering investing in Project G or Project H. Proj.pdfYep Company is considering investing in Project G or Project H. Proj.pdf
Yep Company is considering investing in Project G or Project H. Proj.pdf
 
Yandie Izzo gestiona una estrategia de crecimiento de dividendos par.pdf
Yandie Izzo gestiona una estrategia de crecimiento de dividendos par.pdfYandie Izzo gestiona una estrategia de crecimiento de dividendos par.pdf
Yandie Izzo gestiona una estrategia de crecimiento de dividendos par.pdf
 
Y=(1S)(YT)+I+G+a((EP)(P))m(YT).pdf
Y=(1S)(YT)+I+G+a((EP)(P))m(YT).pdfY=(1S)(YT)+I+G+a((EP)(P))m(YT).pdf
Y=(1S)(YT)+I+G+a((EP)(P))m(YT).pdf
 
y is that corporations must create value for all of their stakeholders.pdf
y is that corporations must create value for all of their stakeholders.pdfy is that corporations must create value for all of their stakeholders.pdf
y is that corporations must create value for all of their stakeholders.pdf
 
Y=$6,000+1.pdf
Y=$6,000+1.pdfY=$6,000+1.pdf
Y=$6,000+1.pdf
 
xx warlance stacdard dewotson.pdf
xx warlance stacdard dewotson.pdfxx warlance stacdard dewotson.pdf
xx warlance stacdard dewotson.pdf
 
Xavier and Yolanda have original investments of $50,700 and $102,300.pdf
Xavier and Yolanda have original investments of $50,700 and $102,300.pdfXavier and Yolanda have original investments of $50,700 and $102,300.pdf
Xavier and Yolanda have original investments of $50,700 and $102,300.pdf
 
x is 3.pdf
x is 3.pdfx is 3.pdf
x is 3.pdf
 
X has the following probability distribution P(X) Compute the expect.pdf
X has the following probability distribution P(X)  Compute the expect.pdfX has the following probability distribution P(X)  Compute the expect.pdf
X has the following probability distribution P(X) Compute the expect.pdf
 
Written descriptions of how to input data and how to invoke the func.pdf
Written descriptions of how to input data and how to invoke the func.pdfWritten descriptions of how to input data and how to invoke the func.pdf
Written descriptions of how to input data and how to invoke the func.pdf
 
You get a bunch of photos with certain information about them. With .pdf
You get a bunch of photos with certain information about them. With .pdfYou get a bunch of photos with certain information about them. With .pdf
You get a bunch of photos with certain information about them. With .pdf
 
writing a paper about Migraine using these 3 articles Migraine A Hi.pdf
writing a paper about Migraine using these 3 articles Migraine A Hi.pdfwriting a paper about Migraine using these 3 articles Migraine A Hi.pdf
writing a paper about Migraine using these 3 articles Migraine A Hi.pdf
 
You are working as a network engineer for an IT company called YorkI.pdf
You are working as a network engineer for an IT company called YorkI.pdfYou are working as a network engineer for an IT company called YorkI.pdf
You are working as a network engineer for an IT company called YorkI.pdf
 
You are the PM on a software upgrade project. You find out from a se.pdf
You are the PM on a software upgrade project. You find out from a se.pdfYou are the PM on a software upgrade project. You find out from a se.pdf
You are the PM on a software upgrade project. You find out from a se.pdf
 
you are opening Tim Hortons in Nigeria.complete the sections of the .pdf
you are opening Tim Hortons in Nigeria.complete the sections of the .pdfyou are opening Tim Hortons in Nigeria.complete the sections of the .pdf
you are opening Tim Hortons in Nigeria.complete the sections of the .pdf
 
You are meeting your client, Henry, who is 70 years old. Henry took .pdf
You are meeting your client, Henry, who is 70 years old. Henry took .pdfYou are meeting your client, Henry, who is 70 years old. Henry took .pdf
You are meeting your client, Henry, who is 70 years old. Henry took .pdf
 
You are Maria Herrera and have been recently promoted to the positio.pdf
You are Maria Herrera and have been recently promoted to the positio.pdfYou are Maria Herrera and have been recently promoted to the positio.pdf
You are Maria Herrera and have been recently promoted to the positio.pdf
 

Dernier

How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 

Dernier (20)

Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 

WRITE THE PROGRAM IN MIPS LANGUAGE ONLY THAT WORKS WITH MARS SIMULAT.pdf

  • 1. WRITE THE PROGRAM IN MIPS LANGUAGE ONLY THAT WORKS WITH MARS SIMULATOR (DONT COPY & PASTE FROM CHATGPT IT GIVES ANSWER WITH ERROR I HAVE TRIED IT 100 TIMES BY NOW IT DOESNT SOLVE PROBLEM) (I WROTE THAT IN BOLD BECAUSE PREVIOUS 2 EXPERT WHO ANSWERED COPIED FROM CHATGPT) A palindrome is a word or phrase that reads the same from left to right as right to left. A simple palindrome is kayak, for example. Other rules are that you ignore punctuation and letter case. For example, Madam, Im Adam is a palindrome despite commas, spaces, and upper and lower case differences. Palindromes can also contain digits, such as 12421. Write a program in MIPS language that works in MARS Simulator that does the following 1. Request a string from the user. If it is zero length (the first character is n) exit the program. 2. Determine if the string is a palindrome. If so, print Palindrome. If not, print Not a palindrome. 3. Return to request another string. Program structure: 1) You can assume no input string is longer than 200 characters. 2) You must write a function that determines whether the string is a palindrome. Call this with the address of the string in $a0. This function must be recursive. That is, it must test whether the initial string might be a palindrome and return true if it the outer two characters match and false if they dont, meaning if you return false at any level, stop the recursive calls and return false. 3) Within this function, you must call another function that removes anything that isnt a letter or a number. 4) Within the second function, call a third function that converts lower case to upper case so your comparisons work properly. 5) Finally, call your recursive palindrome function. 6) You should have two files. The first has the main body of your code that requests a string, calls a function that checks a palindrome, which is item 2, above plus initialization code. The second file has any subroutines you may need, such as removing punctuation and converting case.