SlideShare a Scribd company logo
1 of 1
Download to read offline
A linked list is a linear data structure consisting of a set of nodes, where each one except the last
points to the next node in the list. (Appendix A provides more information about linked lists.)
Suppose we have the set of five nodes shown in the illustration on page 294. These nodes have
been scrambled up and placed in a MARIE program as show below. Write a MARIE program to
traverse the list and print the data in th order it is stored in each node.
Address
(Hex)
00D | Addr, Hex ???? // Top of list pointer:
// You fill in the address of Node1.
00E | Node2, Hex 0032 // Node's data is the character "2."
00F | Hex ???? // Address of Node3.
010 | Node4, Hex 0034 // Character "4."
011 | Hex ????
012 | Node1, Hex 0031 // Character "1"
013 | Hex ????
014 | Node3, Hex 0033 // Character "3"
015 | Hex ????
016 | Node5, Hex 0035 // Character "5"
017 | Hex 0000 // Indicates terminal node.

More Related Content

More from ambikae5

A large File F is transformed from host A to host B. There are N Lay.pdf
A large File F is transformed from host A to host B. There are N Lay.pdfA large File F is transformed from host A to host B. There are N Lay.pdf
A large File F is transformed from host A to host B. There are N Lay.pdfambikae5
 
A kindergarten class has four left-handed children and eight right-h.pdf
A kindergarten class has four left-handed children and eight right-h.pdfA kindergarten class has four left-handed children and eight right-h.pdf
A kindergarten class has four left-handed children and eight right-h.pdfambikae5
 
A Japanese businessman on his first visit to the United States was p.pdf
A Japanese businessman on his first visit to the United States was p.pdfA Japanese businessman on his first visit to the United States was p.pdf
A Japanese businessman on his first visit to the United States was p.pdfambikae5
 
A group researching the most popular college majors found that 19.3.pdf
A group researching the most popular college majors found that 19.3.pdfA group researching the most popular college majors found that 19.3.pdf
A group researching the most popular college majors found that 19.3.pdfambikae5
 
a ground-glass appearance and air bronchogram on the chest X-ray.F.pdf
a ground-glass appearance and air bronchogram on the chest X-ray.F.pdfa ground-glass appearance and air bronchogram on the chest X-ray.F.pdf
a ground-glass appearance and air bronchogram on the chest X-ray.F.pdfambikae5
 
A fines de enero, Mineral Labs ten�a un inventario de 875 unidades, .pdf
A fines de enero, Mineral Labs ten�a un inventario de 875 unidades, .pdfA fines de enero, Mineral Labs ten�a un inventario de 875 unidades, .pdf
A fines de enero, Mineral Labs ten�a un inventario de 875 unidades, .pdfambikae5
 
A database is a shared, integrated computer structure that stores a .pdf
A database is a shared, integrated computer structure that stores a .pdfA database is a shared, integrated computer structure that stores a .pdf
A database is a shared, integrated computer structure that stores a .pdfambikae5
 
A Duke le parec�a que Lucinda Furtado, una asistente de limpieza, .pdf
A Duke le parec�a que Lucinda Furtado, una asistente de limpieza, .pdfA Duke le parec�a que Lucinda Furtado, una asistente de limpieza, .pdf
A Duke le parec�a que Lucinda Furtado, una asistente de limpieza, .pdfambikae5
 
A database is a collection of data that is organized in a way to.pdf
A database is a collection of data that is organized in a way to.pdfA database is a collection of data that is organized in a way to.pdf
A database is a collection of data that is organized in a way to.pdfambikae5
 
A dependency diagram is given for a table. Please convert it to .pdf
A dependency diagram is given for a table. Please convert it to .pdfA dependency diagram is given for a table. Please convert it to .pdf
A dependency diagram is given for a table. Please convert it to .pdfambikae5
 
A El proceso de producci�n de peri�dicos ha recorrido un largo c.pdf
A El proceso de producci�n de peri�dicos ha recorrido un largo c.pdfA El proceso de producci�n de peri�dicos ha recorrido un largo c.pdf
A El proceso de producci�n de peri�dicos ha recorrido un largo c.pdfambikae5
 
A exercise web tool powered by AI is currently under development her.pdf
A exercise web tool powered by AI is currently under development her.pdfA exercise web tool powered by AI is currently under development her.pdf
A exercise web tool powered by AI is currently under development her.pdfambikae5
 
a distribution is given as X~ U(0,12)what is the probability d.pdf
a distribution is given as X~ U(0,12)what is the probability d.pdfa distribution is given as X~ U(0,12)what is the probability d.pdf
a distribution is given as X~ U(0,12)what is the probability d.pdfambikae5
 
A detailed explanation for question Cthank you Assume.pdf
A detailed explanation for question Cthank you Assume.pdfA detailed explanation for question Cthank you Assume.pdf
A detailed explanation for question Cthank you Assume.pdfambikae5
 
A digital factory that is connected, networked, and fully integrated.pdf
A digital factory that is connected, networked, and fully integrated.pdfA digital factory that is connected, networked, and fully integrated.pdf
A digital factory that is connected, networked, and fully integrated.pdfambikae5
 
A difference between a benign tumor and malignant cancer is the foll.pdf
A difference between a benign tumor and malignant cancer is the foll.pdfA difference between a benign tumor and malignant cancer is the foll.pdf
A difference between a benign tumor and malignant cancer is the foll.pdfambikae5
 
A developmental psychologist is interested in whether children (age .pdf
A developmental psychologist is interested in whether children (age .pdfA developmental psychologist is interested in whether children (age .pdf
A developmental psychologist is interested in whether children (age .pdfambikae5
 
A continuous random variable X has a density function given by.pdf
A continuous random variable X has a density function given by.pdfA continuous random variable X has a density function given by.pdf
A continuous random variable X has a density function given by.pdfambikae5
 
A continuaci�n se presenta informaci�n relacionada con Hale Corporat.pdf
A continuaci�n se presenta informaci�n relacionada con Hale Corporat.pdfA continuaci�n se presenta informaci�n relacionada con Hale Corporat.pdf
A continuaci�n se presenta informaci�n relacionada con Hale Corporat.pdfambikae5
 
A continuaci�n, se muestran las secciones de capital de Upperchurch .pdf
A continuaci�n, se muestran las secciones de capital de Upperchurch .pdfA continuaci�n, se muestran las secciones de capital de Upperchurch .pdf
A continuaci�n, se muestran las secciones de capital de Upperchurch .pdfambikae5
 

More from ambikae5 (20)

A large File F is transformed from host A to host B. There are N Lay.pdf
A large File F is transformed from host A to host B. There are N Lay.pdfA large File F is transformed from host A to host B. There are N Lay.pdf
A large File F is transformed from host A to host B. There are N Lay.pdf
 
A kindergarten class has four left-handed children and eight right-h.pdf
A kindergarten class has four left-handed children and eight right-h.pdfA kindergarten class has four left-handed children and eight right-h.pdf
A kindergarten class has four left-handed children and eight right-h.pdf
 
A Japanese businessman on his first visit to the United States was p.pdf
A Japanese businessman on his first visit to the United States was p.pdfA Japanese businessman on his first visit to the United States was p.pdf
A Japanese businessman on his first visit to the United States was p.pdf
 
A group researching the most popular college majors found that 19.3.pdf
A group researching the most popular college majors found that 19.3.pdfA group researching the most popular college majors found that 19.3.pdf
A group researching the most popular college majors found that 19.3.pdf
 
a ground-glass appearance and air bronchogram on the chest X-ray.F.pdf
a ground-glass appearance and air bronchogram on the chest X-ray.F.pdfa ground-glass appearance and air bronchogram on the chest X-ray.F.pdf
a ground-glass appearance and air bronchogram on the chest X-ray.F.pdf
 
A fines de enero, Mineral Labs ten�a un inventario de 875 unidades, .pdf
A fines de enero, Mineral Labs ten�a un inventario de 875 unidades, .pdfA fines de enero, Mineral Labs ten�a un inventario de 875 unidades, .pdf
A fines de enero, Mineral Labs ten�a un inventario de 875 unidades, .pdf
 
A database is a shared, integrated computer structure that stores a .pdf
A database is a shared, integrated computer structure that stores a .pdfA database is a shared, integrated computer structure that stores a .pdf
A database is a shared, integrated computer structure that stores a .pdf
 
A Duke le parec�a que Lucinda Furtado, una asistente de limpieza, .pdf
A Duke le parec�a que Lucinda Furtado, una asistente de limpieza, .pdfA Duke le parec�a que Lucinda Furtado, una asistente de limpieza, .pdf
A Duke le parec�a que Lucinda Furtado, una asistente de limpieza, .pdf
 
A database is a collection of data that is organized in a way to.pdf
A database is a collection of data that is organized in a way to.pdfA database is a collection of data that is organized in a way to.pdf
A database is a collection of data that is organized in a way to.pdf
 
A dependency diagram is given for a table. Please convert it to .pdf
A dependency diagram is given for a table. Please convert it to .pdfA dependency diagram is given for a table. Please convert it to .pdf
A dependency diagram is given for a table. Please convert it to .pdf
 
A El proceso de producci�n de peri�dicos ha recorrido un largo c.pdf
A El proceso de producci�n de peri�dicos ha recorrido un largo c.pdfA El proceso de producci�n de peri�dicos ha recorrido un largo c.pdf
A El proceso de producci�n de peri�dicos ha recorrido un largo c.pdf
 
A exercise web tool powered by AI is currently under development her.pdf
A exercise web tool powered by AI is currently under development her.pdfA exercise web tool powered by AI is currently under development her.pdf
A exercise web tool powered by AI is currently under development her.pdf
 
a distribution is given as X~ U(0,12)what is the probability d.pdf
a distribution is given as X~ U(0,12)what is the probability d.pdfa distribution is given as X~ U(0,12)what is the probability d.pdf
a distribution is given as X~ U(0,12)what is the probability d.pdf
 
A detailed explanation for question Cthank you Assume.pdf
A detailed explanation for question Cthank you Assume.pdfA detailed explanation for question Cthank you Assume.pdf
A detailed explanation for question Cthank you Assume.pdf
 
A digital factory that is connected, networked, and fully integrated.pdf
A digital factory that is connected, networked, and fully integrated.pdfA digital factory that is connected, networked, and fully integrated.pdf
A digital factory that is connected, networked, and fully integrated.pdf
 
A difference between a benign tumor and malignant cancer is the foll.pdf
A difference between a benign tumor and malignant cancer is the foll.pdfA difference between a benign tumor and malignant cancer is the foll.pdf
A difference between a benign tumor and malignant cancer is the foll.pdf
 
A developmental psychologist is interested in whether children (age .pdf
A developmental psychologist is interested in whether children (age .pdfA developmental psychologist is interested in whether children (age .pdf
A developmental psychologist is interested in whether children (age .pdf
 
A continuous random variable X has a density function given by.pdf
A continuous random variable X has a density function given by.pdfA continuous random variable X has a density function given by.pdf
A continuous random variable X has a density function given by.pdf
 
A continuaci�n se presenta informaci�n relacionada con Hale Corporat.pdf
A continuaci�n se presenta informaci�n relacionada con Hale Corporat.pdfA continuaci�n se presenta informaci�n relacionada con Hale Corporat.pdf
A continuaci�n se presenta informaci�n relacionada con Hale Corporat.pdf
 
A continuaci�n, se muestran las secciones de capital de Upperchurch .pdf
A continuaci�n, se muestran las secciones de capital de Upperchurch .pdfA continuaci�n, se muestran las secciones de capital de Upperchurch .pdf
A continuaci�n, se muestran las secciones de capital de Upperchurch .pdf
 

Recently uploaded

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
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
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 

Recently uploaded (20)

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
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
 
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
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 

A linked list is a linear data structure consisting of a set of node.pdf

  • 1. A linked list is a linear data structure consisting of a set of nodes, where each one except the last points to the next node in the list. (Appendix A provides more information about linked lists.) Suppose we have the set of five nodes shown in the illustration on page 294. These nodes have been scrambled up and placed in a MARIE program as show below. Write a MARIE program to traverse the list and print the data in th order it is stored in each node. Address (Hex) 00D | Addr, Hex ???? // Top of list pointer: // You fill in the address of Node1. 00E | Node2, Hex 0032 // Node's data is the character "2." 00F | Hex ???? // Address of Node3. 010 | Node4, Hex 0034 // Character "4." 011 | Hex ???? 012 | Node1, Hex 0031 // Character "1" 013 | Hex ???? 014 | Node3, Hex 0033 // Character "3" 015 | Hex ???? 016 | Node5, Hex 0035 // Character "5" 017 | Hex 0000 // Indicates terminal node.