SlideShare a Scribd company logo
1 of 1
The assignment is to implement the methods “insert” and
“delete” for our custom collection class Sequence which we
built at the end of Lecture 2.
The insert method will take as input int index and E
newElement. The method will insert the element into the data
array at the specified index. It will then print the elements in
the array.
The delete method will take as input int index. The method will
delete the element at the specified index. It will then print the
elements in the array.

More Related Content

More from rtodd17

The articles about the 2011 horn of Africa famine note several dif.docx
The articles about the 2011 horn of Africa famine note several dif.docxThe articles about the 2011 horn of Africa famine note several dif.docx
The articles about the 2011 horn of Africa famine note several dif.docx
rtodd17
 
The assigment is overdue now. I will up the price I am willing to pa.docx
The assigment is overdue now. I will up the price I am willing to pa.docxThe assigment is overdue now. I will up the price I am willing to pa.docx
The assigment is overdue now. I will up the price I am willing to pa.docx
rtodd17
 
The article that youve requested, Critical Thinking from Encyclop.docx
The article that youve requested, Critical Thinking from Encyclop.docxThe article that youve requested, Critical Thinking from Encyclop.docx
The article that youve requested, Critical Thinking from Encyclop.docx
rtodd17
 
the article on the tomb of Nefertari ALYA AL HADDABI.docx
the article on the tomb of Nefertari ALYA AL HADDABI.docxthe article on the tomb of Nefertari ALYA AL HADDABI.docx
the article on the tomb of Nefertari ALYA AL HADDABI.docx
rtodd17
 

More from rtodd17 (20)

The assessment portion of the nursing process is where the nurse.docx
The assessment portion of the nursing process is where the nurse.docxThe assessment portion of the nursing process is where the nurse.docx
The assessment portion of the nursing process is where the nurse.docx
 
The assignment (3 – 4 pages)Analyze the history of the profession.docx
The assignment (3 – 4 pages)Analyze the history of the profession.docxThe assignment (3 – 4 pages)Analyze the history of the profession.docx
The assignment (3 – 4 pages)Analyze the history of the profession.docx
 
The Assignment (2–4 pages)Provide a transcript of what happen.docx
The Assignment (2–4 pages)Provide a transcript of what happen.docxThe Assignment (2–4 pages)Provide a transcript of what happen.docx
The Assignment (2–4 pages)Provide a transcript of what happen.docx
 
The articles about the 2011 horn of Africa famine note several dif.docx
The articles about the 2011 horn of Africa famine note several dif.docxThe articles about the 2011 horn of Africa famine note several dif.docx
The articles about the 2011 horn of Africa famine note several dif.docx
 
The Assignment (2–4 pages)Discuss something important you lea.docx
The Assignment (2–4 pages)Discuss something important you lea.docxThe Assignment (2–4 pages)Discuss something important you lea.docx
The Assignment (2–4 pages)Discuss something important you lea.docx
 
The Assignment (2–3 pages)Your submission should include the.docx
The Assignment (2–3 pages)Your submission should include the.docxThe Assignment (2–3 pages)Your submission should include the.docx
The Assignment (2–3 pages)Your submission should include the.docx
 
The assignment (2–3 pages)Explain the similarities and .docx
The assignment (2–3 pages)Explain the similarities and .docxThe assignment (2–3 pages)Explain the similarities and .docx
The assignment (2–3 pages)Explain the similarities and .docx
 
The assignment (2–3 pages)Identify the human services adminis.docx
The assignment (2–3 pages)Identify the human services adminis.docxThe assignment (2–3 pages)Identify the human services adminis.docx
The assignment (2–3 pages)Identify the human services adminis.docx
 
The Assignment (2–3 pages)Based on the program or policy ev.docx
The Assignment (2–3 pages)Based on the program or policy ev.docxThe Assignment (2–3 pages)Based on the program or policy ev.docx
The Assignment (2–3 pages)Based on the program or policy ev.docx
 
The Assignment (2–3 pages)Explain the effects of sexual tra.docx
The Assignment (2–3 pages)Explain the effects of sexual tra.docxThe Assignment (2–3 pages)Explain the effects of sexual tra.docx
The Assignment (2–3 pages)Explain the effects of sexual tra.docx
 
The article must be current to Law Enforcement or other Criminal.docx
The article must be current to Law Enforcement or other Criminal.docxThe article must be current to Law Enforcement or other Criminal.docx
The article must be current to Law Enforcement or other Criminal.docx
 
The assigment is overdue now. I will up the price I am willing to pa.docx
The assigment is overdue now. I will up the price I am willing to pa.docxThe assigment is overdue now. I will up the price I am willing to pa.docx
The assigment is overdue now. I will up the price I am willing to pa.docx
 
The assignment (1–2pages)Describe the diverse populatio.docx
The assignment (1–2pages)Describe the diverse populatio.docxThe assignment (1–2pages)Describe the diverse populatio.docx
The assignment (1–2pages)Describe the diverse populatio.docx
 
The article has been attached. I need a two-page paper consisting.docx
The article has been attached. I need a two-page paper consisting.docxThe article has been attached. I need a two-page paper consisting.docx
The article has been attached. I need a two-page paper consisting.docx
 
The Assignment (1-page)Write a short paragraph that would be co.docx
The Assignment (1-page)Write a short paragraph that would be co.docxThe Assignment (1-page)Write a short paragraph that would be co.docx
The Assignment (1-page)Write a short paragraph that would be co.docx
 
The Assignment (1–2 pages)Compare an anxiety disorder with an.docx
The Assignment (1–2 pages)Compare an anxiety disorder with an.docxThe Assignment (1–2 pages)Compare an anxiety disorder with an.docx
The Assignment (1–2 pages)Compare an anxiety disorder with an.docx
 
The article that youve requested, Critical Thinking from Encyclop.docx
The article that youve requested, Critical Thinking from Encyclop.docxThe article that youve requested, Critical Thinking from Encyclop.docx
The article that youve requested, Critical Thinking from Encyclop.docx
 
The assignment (1–2pages)Briefly describe three foren.docx
The assignment (1–2pages)Briefly describe three foren.docxThe assignment (1–2pages)Briefly describe three foren.docx
The assignment (1–2pages)Briefly describe three foren.docx
 
The article suggests that there are considerable differences between.docx
The article suggests that there are considerable differences between.docxThe article suggests that there are considerable differences between.docx
The article suggests that there are considerable differences between.docx
 
the article on the tomb of Nefertari ALYA AL HADDABI.docx
the article on the tomb of Nefertari ALYA AL HADDABI.docxthe article on the tomb of Nefertari ALYA AL HADDABI.docx
the article on the tomb of Nefertari ALYA AL HADDABI.docx
 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 

The assignment is to implement the methods insert” and delete”.docx

  • 1. The assignment is to implement the methods “insert” and “delete” for our custom collection class Sequence which we built at the end of Lecture 2. The insert method will take as input int index and E newElement. The method will insert the element into the data array at the specified index. It will then print the elements in the array. The delete method will take as input int index. The method will delete the element at the specified index. It will then print the elements in the array.