SlideShare a Scribd company logo
1 of 1
Download to read offline
Write a 8086 program that uses a stack to check if a word is a palindrome. The input word will
contain at most 20 characters (use a buffer string to store the input). A palindrome is a word that
reads the same backward or forward. It derives from Greek roots that literally mean running back
(palin is again, back, and dromos,running.). Some examples are:
kayak
deified
rotator
repaper
civic
Sample Output:
Case 1:
Input a word: :
hello
The word is NOT a palindrome
Case 2:
Input a word: :
rotator
The word is a palindrome

More Related Content

More from advancesystem

Working with Dictionaries and ListsSets Modules you can use.pdf
Working with Dictionaries and ListsSets Modules you can use.pdfWorking with Dictionaries and ListsSets Modules you can use.pdf
Working with Dictionaries and ListsSets Modules you can use.pdf
advancesystem
 
Working individually or in pairs you will apply what you ha.pdf
Working individually or in pairs you will apply what you ha.pdfWorking individually or in pairs you will apply what you ha.pdf
Working individually or in pairs you will apply what you ha.pdf
advancesystem
 

More from advancesystem (20)

Write a class called Window that contains the following info.pdf
Write a class called Window that contains the following info.pdfWrite a class called Window that contains the following info.pdf
Write a class called Window that contains the following info.pdf
 
Write a C code that uses struct to create a userdefined typ.pdf
Write a C code that uses struct to create a userdefined typ.pdfWrite a C code that uses struct to create a userdefined typ.pdf
Write a C code that uses struct to create a userdefined typ.pdf
 
Write a 12 page report on igneous rock and how they are m.pdf
Write a 12 page report on igneous rock and  how they are m.pdfWrite a 12 page report on igneous rock and  how they are m.pdf
Write a 12 page report on igneous rock and how they are m.pdf
 
WQ4 Coevolution of Central American ants in the Pseudomyrme.pdf
WQ4 Coevolution of Central American ants in the Pseudomyrme.pdfWQ4 Coevolution of Central American ants in the Pseudomyrme.pdf
WQ4 Coevolution of Central American ants in the Pseudomyrme.pdf
 
With the following companies Apple Caterpillar Consolidat.pdf
With the following companies Apple Caterpillar Consolidat.pdfWith the following companies Apple Caterpillar Consolidat.pdf
With the following companies Apple Caterpillar Consolidat.pdf
 
Would the current answer be considered correct 2 Identify .pdf
Would the current answer be considered correct 2 Identify .pdfWould the current answer be considered correct 2 Identify .pdf
Would the current answer be considered correct 2 Identify .pdf
 
WQ3 Considering that you know about natural selection is o.pdf
WQ3 Considering that you know about natural selection is o.pdfWQ3 Considering that you know about natural selection is o.pdf
WQ3 Considering that you know about natural selection is o.pdf
 
would be earned How much of the total is simple interest an.pdf
would be earned How much of the total is simple interest an.pdfwould be earned How much of the total is simple interest an.pdf
would be earned How much of the total is simple interest an.pdf
 
write 350400 WORDS AND EXPLAIN BRIEFLY lapter 7 How Touris.pdf
write 350400 WORDS AND EXPLAIN BRIEFLY lapter 7 How Touris.pdfwrite 350400 WORDS AND EXPLAIN BRIEFLY lapter 7 How Touris.pdf
write 350400 WORDS AND EXPLAIN BRIEFLY lapter 7 How Touris.pdf
 
World vegetation maps and world climate maps are very simila.pdf
World vegetation maps and world climate maps are very simila.pdfWorld vegetation maps and world climate maps are very simila.pdf
World vegetation maps and world climate maps are very simila.pdf
 
Working with Dictionaries and ListsSets Modules you can use.pdf
Working with Dictionaries and ListsSets Modules you can use.pdfWorking with Dictionaries and ListsSets Modules you can use.pdf
Working with Dictionaries and ListsSets Modules you can use.pdf
 
Working individually or in pairs you will apply what you ha.pdf
Working individually or in pairs you will apply what you ha.pdfWorking individually or in pairs you will apply what you ha.pdf
Working individually or in pairs you will apply what you ha.pdf
 
Without using a function write the JavaScript code so that w.pdf
Without using a function write the JavaScript code so that w.pdfWithout using a function write the JavaScript code so that w.pdf
Without using a function write the JavaScript code so that w.pdf
 
with thefour approches to Internation human resource managem.pdf
with thefour approches to Internation human resource managem.pdfwith thefour approches to Internation human resource managem.pdf
with thefour approches to Internation human resource managem.pdf
 
Why did the marine trophic index continue to decline after t.pdf
Why did the marine trophic index continue to decline after t.pdfWhy did the marine trophic index continue to decline after t.pdf
Why did the marine trophic index continue to decline after t.pdf
 
With regard to the Pacific the phrase tyranny of distance.pdf
With regard to the Pacific the phrase tyranny of distance.pdfWith regard to the Pacific the phrase tyranny of distance.pdf
With regard to the Pacific the phrase tyranny of distance.pdf
 
With or without Dox the amount of virus stays the same Does.pdf
With or without Dox the amount of virus stays the same Does.pdfWith or without Dox the amount of virus stays the same Does.pdf
With or without Dox the amount of virus stays the same Does.pdf
 
Wildhorse Co had the following assets on January 12025 Du.pdf
Wildhorse Co had the following assets on January 12025 Du.pdfWildhorse Co had the following assets on January 12025 Du.pdf
Wildhorse Co had the following assets on January 12025 Du.pdf
 
With respect to the shoulder latissimus dorsi is a twojoin.pdf
With respect to the shoulder latissimus dorsi is a twojoin.pdfWith respect to the shoulder latissimus dorsi is a twojoin.pdf
With respect to the shoulder latissimus dorsi is a twojoin.pdf
 
Why should organizations be interested in ISO 20400 What ar.pdf
Why should organizations be interested in ISO 20400 What ar.pdfWhy should organizations be interested in ISO 20400 What ar.pdf
Why should organizations be interested in ISO 20400 What ar.pdf
 

Recently uploaded

SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 
Poster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdfPoster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdf
Alexander Litvinenko
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 

Recently uploaded (20)

Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
Word Stress rules esl .pptx
Word Stress rules esl               .pptxWord Stress rules esl               .pptx
Word Stress rules esl .pptx
 
Benefits and Challenges of OER by Shweta Babel.pptx
Benefits and Challenges of OER by Shweta Babel.pptxBenefits and Challenges of OER by Shweta Babel.pptx
Benefits and Challenges of OER by Shweta Babel.pptx
 
Poster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdfPoster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdf
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 

Write a 8086 program that uses a stack to check if a word is.pdf

  • 1. Write a 8086 program that uses a stack to check if a word is a palindrome. The input word will contain at most 20 characters (use a buffer string to store the input). A palindrome is a word that reads the same backward or forward. It derives from Greek roots that literally mean running back (palin is again, back, and dromos,running.). Some examples are: kayak deified rotator repaper civic Sample Output: Case 1: Input a word: : hello The word is NOT a palindrome Case 2: Input a word: : rotator The word is a palindrome