SlideShare a Scribd company logo
need on c++
Task 1: Design a class for Singly linked List with data members data and next pointer. Your class
must provide implementation for the following - A default constructor for Node - A parameterized
constructor - Getters for data and next - Setters for data and next Design a linkedList class with a
pointer of type Node. This will carry the address of head initially, later it will be required for
traversal. Your class must provide implementation for the following - A default constructor - Insert
function to insert data item. For every new data element to be inserted, you will have to reach up
to the end point of LL and then perform insertion - Insert to head function to insert data element at
the start of your LL - Design isEmpty to check if there is no data element in the LL - Why don't you
need to design isFull? - A Search function to search for any element provided by user - Update
function to update/replace one data element with another - A function Insert at index that will count
data elements in the LL and then place a new data element in the specified location. To know
exactly after which node we have to make insertion, we need count the elements and that will help
us to identify index (index doesn't exist actually, but we are using this term to get to know the
location for insertion) - A function Delete to delete the specified data element, for this you will have
to save the address of the next node that appears after the one to be deleted. Saving the address
will help you after deleting the element to concatenate the list with the elements appearing after
the element that is supposed to be deleted. - A function to print the data of LL

More Related Content

Similar to need on c++ Task 1 Design a class for Singly linked List wi.pdf

linked lists in data structures
linked lists in data structureslinked lists in data structures
linked lists in data structures
DurgaDeviCbit
 
Linked List Objective The purpose of this exercise is to cr.pdf
Linked List Objective The purpose of this exercise is to cr.pdfLinked List Objective The purpose of this exercise is to cr.pdf
Linked List Objective The purpose of this exercise is to cr.pdf
adityacomputers001
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
SaralaT3
 
linklked lisdi.pdf
linklked lisdi.pdflinklked lisdi.pdf
linklked lisdi.pdf
VinayKamriya
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
sarala9
 
Objective The purpose of this exercise is to create a Linked List d.pdf
Objective The purpose of this exercise is to create a Linked List d.pdfObjective The purpose of this exercise is to create a Linked List d.pdf
Objective The purpose of this exercise is to create a Linked List d.pdf
aliracreations
 
Adt of lists
Adt of listsAdt of lists
Adt of lists
Nivegeetha
 
Please and Thank youObjective The purpose of this exercise is to .pdf
Please and Thank youObjective The purpose of this exercise is to .pdfPlease and Thank youObjective The purpose of this exercise is to .pdf
Please and Thank youObjective The purpose of this exercise is to .pdf
alicesilverblr
 
Lec3-Linked list.pptx
Lec3-Linked list.pptxLec3-Linked list.pptx
Lec3-Linked list.pptx
FaheemMahmood2
 
Data Structures_Linked List
Data Structures_Linked ListData Structures_Linked List
Data Structures_Linked List
ThenmozhiK5
 
Data Structure
Data Structure Data Structure
Data Structure
Ibrahim MH
 
Funddamentals of data structures
Funddamentals of data structuresFunddamentals of data structures
Funddamentals of data structures
Globalidiots
 
computer notes - Linked list inside computer memory
computer notes - Linked list inside computer memorycomputer notes - Linked list inside computer memory
computer notes - Linked list inside computer memoryecomputernotes
 
Unit 1_SLL and DLL.pdf
Unit 1_SLL and DLL.pdfUnit 1_SLL and DLL.pdf
Unit 1_SLL and DLL.pdf
KanchanPatil34
 
Unit i(dsc++)
Unit i(dsc++)Unit i(dsc++)
Unit i(dsc++)
Durga Devi
 
singly link list project in dsa.....by rohit malav
singly link list project in dsa.....by rohit malavsingly link list project in dsa.....by rohit malav
singly link list project in dsa.....by rohit malav
Rohit malav
 
Data Structure & Algorithms - Operations
Data Structure & Algorithms - OperationsData Structure & Algorithms - Operations
Data Structure & Algorithms - Operations
babuk110
 
1.3 Linked List.pptx
1.3 Linked List.pptx1.3 Linked List.pptx
1.3 Linked List.pptx
ssuserd2f031
 
need it in c++ Task 2 Reuse the Task 1 and create 2 linkedl.pdf
need it in c++ Task 2 Reuse the Task 1 and create 2 linkedl.pdfneed it in c++ Task 2 Reuse the Task 1 and create 2 linkedl.pdf
need it in c++ Task 2 Reuse the Task 1 and create 2 linkedl.pdf
eyeattractionsindia
 
Unit 1 linked list
Unit 1 linked listUnit 1 linked list
Unit 1 linked list
LavanyaJ28
 

Similar to need on c++ Task 1 Design a class for Singly linked List wi.pdf (20)

linked lists in data structures
linked lists in data structureslinked lists in data structures
linked lists in data structures
 
Linked List Objective The purpose of this exercise is to cr.pdf
Linked List Objective The purpose of this exercise is to cr.pdfLinked List Objective The purpose of this exercise is to cr.pdf
Linked List Objective The purpose of this exercise is to cr.pdf
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
linklked lisdi.pdf
linklked lisdi.pdflinklked lisdi.pdf
linklked lisdi.pdf
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
Objective The purpose of this exercise is to create a Linked List d.pdf
Objective The purpose of this exercise is to create a Linked List d.pdfObjective The purpose of this exercise is to create a Linked List d.pdf
Objective The purpose of this exercise is to create a Linked List d.pdf
 
Adt of lists
Adt of listsAdt of lists
Adt of lists
 
Please and Thank youObjective The purpose of this exercise is to .pdf
Please and Thank youObjective The purpose of this exercise is to .pdfPlease and Thank youObjective The purpose of this exercise is to .pdf
Please and Thank youObjective The purpose of this exercise is to .pdf
 
Lec3-Linked list.pptx
Lec3-Linked list.pptxLec3-Linked list.pptx
Lec3-Linked list.pptx
 
Data Structures_Linked List
Data Structures_Linked ListData Structures_Linked List
Data Structures_Linked List
 
Data Structure
Data Structure Data Structure
Data Structure
 
Funddamentals of data structures
Funddamentals of data structuresFunddamentals of data structures
Funddamentals of data structures
 
computer notes - Linked list inside computer memory
computer notes - Linked list inside computer memorycomputer notes - Linked list inside computer memory
computer notes - Linked list inside computer memory
 
Unit 1_SLL and DLL.pdf
Unit 1_SLL and DLL.pdfUnit 1_SLL and DLL.pdf
Unit 1_SLL and DLL.pdf
 
Unit i(dsc++)
Unit i(dsc++)Unit i(dsc++)
Unit i(dsc++)
 
singly link list project in dsa.....by rohit malav
singly link list project in dsa.....by rohit malavsingly link list project in dsa.....by rohit malav
singly link list project in dsa.....by rohit malav
 
Data Structure & Algorithms - Operations
Data Structure & Algorithms - OperationsData Structure & Algorithms - Operations
Data Structure & Algorithms - Operations
 
1.3 Linked List.pptx
1.3 Linked List.pptx1.3 Linked List.pptx
1.3 Linked List.pptx
 
need it in c++ Task 2 Reuse the Task 1 and create 2 linkedl.pdf
need it in c++ Task 2 Reuse the Task 1 and create 2 linkedl.pdfneed it in c++ Task 2 Reuse the Task 1 and create 2 linkedl.pdf
need it in c++ Task 2 Reuse the Task 1 and create 2 linkedl.pdf
 
Unit 1 linked list
Unit 1 linked listUnit 1 linked list
Unit 1 linked list
 

More from naslin841216

Ynetim Liderlik Vaka almas Maria ailelere destek salay.pdf
Ynetim Liderlik Vaka almas  Maria ailelere destek salay.pdfYnetim Liderlik Vaka almas  Maria ailelere destek salay.pdf
Ynetim Liderlik Vaka almas Maria ailelere destek salay.pdf
naslin841216
 
Which of the following is not component of Emotional Intelli.pdf
Which of the following is not component of Emotional Intelli.pdfWhich of the following is not component of Emotional Intelli.pdf
Which of the following is not component of Emotional Intelli.pdf
naslin841216
 
Study B Roots Roots and stems often appear similar except .pdf
Study B Roots Roots and stems often appear similar except .pdfStudy B Roots Roots and stems often appear similar except .pdf
Study B Roots Roots and stems often appear similar except .pdf
naslin841216
 
Resumen del caso 253 Contratos de compraventa internaciona.pdf
Resumen del caso 253 Contratos de compraventa internaciona.pdfResumen del caso 253 Contratos de compraventa internaciona.pdf
Resumen del caso 253 Contratos de compraventa internaciona.pdf
naslin841216
 
Question Content Area Use the information provided for Prive.pdf
Question Content Area Use the information provided for Prive.pdfQuestion Content Area Use the information provided for Prive.pdf
Question Content Area Use the information provided for Prive.pdf
naslin841216
 
PREGUNTA 16 Los siguientes son genotipos de merocigotos de.pdf
PREGUNTA 16  Los siguientes son genotipos de merocigotos de.pdfPREGUNTA 16  Los siguientes son genotipos de merocigotos de.pdf
PREGUNTA 16 Los siguientes son genotipos de merocigotos de.pdf
naslin841216
 
Please answer all or do not answer at all 1 Nearly all ign.pdf
Please answer all or do not answer at all 1 Nearly all ign.pdfPlease answer all or do not answer at all 1 Nearly all ign.pdf
Please answer all or do not answer at all 1 Nearly all ign.pdf
naslin841216
 
please summarize i will hit like The year 2021 in Sweden con.pdf
please summarize i will hit like The year 2021 in Sweden con.pdfplease summarize i will hit like The year 2021 in Sweden con.pdf
please summarize i will hit like The year 2021 in Sweden con.pdf
naslin841216
 
On average indoor cats live to 12 years old with a standard.pdf
On average indoor cats live to 12 years old with a standard.pdfOn average indoor cats live to 12 years old with a standard.pdf
On average indoor cats live to 12 years old with a standard.pdf
naslin841216
 
include ltfunctionalgt include ltiteratorgt inclu.pdf
include ltfunctionalgt include ltiteratorgt inclu.pdfinclude ltfunctionalgt include ltiteratorgt inclu.pdf
include ltfunctionalgt include ltiteratorgt inclu.pdf
naslin841216
 
Grace makes sure that she walks by her bosss office several.pdf
Grace makes sure that she walks by her bosss office several.pdfGrace makes sure that she walks by her bosss office several.pdf
Grace makes sure that she walks by her bosss office several.pdf
naslin841216
 
Conversion of G3P to RuBP energy and it is coupled to releas.pdf
Conversion of G3P to RuBP energy and it is coupled to releas.pdfConversion of G3P to RuBP energy and it is coupled to releas.pdf
Conversion of G3P to RuBP energy and it is coupled to releas.pdf
naslin841216
 
In the test of hypotheses about three or more population mea.pdf
In the test of hypotheses about three or more population mea.pdfIn the test of hypotheses about three or more population mea.pdf
In the test of hypotheses about three or more population mea.pdf
naslin841216
 
During the current year Brewer Company acquired all of the .pdf
During the current year Brewer Company acquired all of the .pdfDuring the current year Brewer Company acquired all of the .pdf
During the current year Brewer Company acquired all of the .pdf
naslin841216
 
ii If the second segment is lost what is the acknowledgeme.pdf
ii If the second segment is lost what is the acknowledgeme.pdfii If the second segment is lost what is the acknowledgeme.pdf
ii If the second segment is lost what is the acknowledgeme.pdf
naslin841216
 
Given the matrices B132122Fpath dM403 1759 V84 H666 .pdf
Given the matrices B132122Fpath dM403 1759 V84 H666 .pdfGiven the matrices B132122Fpath dM403 1759 V84 H666 .pdf
Given the matrices B132122Fpath dM403 1759 V84 H666 .pdf
naslin841216
 
Destruction results in loss of communication between the R a.pdf
Destruction results in loss of communication between the R a.pdfDestruction results in loss of communication between the R a.pdf
Destruction results in loss of communication between the R a.pdf
naslin841216
 
As of 2010 Xerox Corporation NYSE XRX is a 22 billion .pdf
As of 2010 Xerox Corporation NYSE XRX is a 22 billion .pdfAs of 2010 Xerox Corporation NYSE XRX is a 22 billion .pdf
As of 2010 Xerox Corporation NYSE XRX is a 22 billion .pdf
naslin841216
 
ACCT 215 CT Accounting Cycle Problem The John Marshall Com.pdf
ACCT 215 CT Accounting Cycle Problem The John Marshall Com.pdfACCT 215 CT Accounting Cycle Problem The John Marshall Com.pdf
ACCT 215 CT Accounting Cycle Problem The John Marshall Com.pdf
naslin841216
 
El caso Una maana de lunes a viernes en 2007 Bethanye Blo.pdf
El caso  Una maana de lunes a viernes en 2007 Bethanye Blo.pdfEl caso  Una maana de lunes a viernes en 2007 Bethanye Blo.pdf
El caso Una maana de lunes a viernes en 2007 Bethanye Blo.pdf
naslin841216
 

More from naslin841216 (20)

Ynetim Liderlik Vaka almas Maria ailelere destek salay.pdf
Ynetim Liderlik Vaka almas  Maria ailelere destek salay.pdfYnetim Liderlik Vaka almas  Maria ailelere destek salay.pdf
Ynetim Liderlik Vaka almas Maria ailelere destek salay.pdf
 
Which of the following is not component of Emotional Intelli.pdf
Which of the following is not component of Emotional Intelli.pdfWhich of the following is not component of Emotional Intelli.pdf
Which of the following is not component of Emotional Intelli.pdf
 
Study B Roots Roots and stems often appear similar except .pdf
Study B Roots Roots and stems often appear similar except .pdfStudy B Roots Roots and stems often appear similar except .pdf
Study B Roots Roots and stems often appear similar except .pdf
 
Resumen del caso 253 Contratos de compraventa internaciona.pdf
Resumen del caso 253 Contratos de compraventa internaciona.pdfResumen del caso 253 Contratos de compraventa internaciona.pdf
Resumen del caso 253 Contratos de compraventa internaciona.pdf
 
Question Content Area Use the information provided for Prive.pdf
Question Content Area Use the information provided for Prive.pdfQuestion Content Area Use the information provided for Prive.pdf
Question Content Area Use the information provided for Prive.pdf
 
PREGUNTA 16 Los siguientes son genotipos de merocigotos de.pdf
PREGUNTA 16  Los siguientes son genotipos de merocigotos de.pdfPREGUNTA 16  Los siguientes son genotipos de merocigotos de.pdf
PREGUNTA 16 Los siguientes son genotipos de merocigotos de.pdf
 
Please answer all or do not answer at all 1 Nearly all ign.pdf
Please answer all or do not answer at all 1 Nearly all ign.pdfPlease answer all or do not answer at all 1 Nearly all ign.pdf
Please answer all or do not answer at all 1 Nearly all ign.pdf
 
please summarize i will hit like The year 2021 in Sweden con.pdf
please summarize i will hit like The year 2021 in Sweden con.pdfplease summarize i will hit like The year 2021 in Sweden con.pdf
please summarize i will hit like The year 2021 in Sweden con.pdf
 
On average indoor cats live to 12 years old with a standard.pdf
On average indoor cats live to 12 years old with a standard.pdfOn average indoor cats live to 12 years old with a standard.pdf
On average indoor cats live to 12 years old with a standard.pdf
 
include ltfunctionalgt include ltiteratorgt inclu.pdf
include ltfunctionalgt include ltiteratorgt inclu.pdfinclude ltfunctionalgt include ltiteratorgt inclu.pdf
include ltfunctionalgt include ltiteratorgt inclu.pdf
 
Grace makes sure that she walks by her bosss office several.pdf
Grace makes sure that she walks by her bosss office several.pdfGrace makes sure that she walks by her bosss office several.pdf
Grace makes sure that she walks by her bosss office several.pdf
 
Conversion of G3P to RuBP energy and it is coupled to releas.pdf
Conversion of G3P to RuBP energy and it is coupled to releas.pdfConversion of G3P to RuBP energy and it is coupled to releas.pdf
Conversion of G3P to RuBP energy and it is coupled to releas.pdf
 
In the test of hypotheses about three or more population mea.pdf
In the test of hypotheses about three or more population mea.pdfIn the test of hypotheses about three or more population mea.pdf
In the test of hypotheses about three or more population mea.pdf
 
During the current year Brewer Company acquired all of the .pdf
During the current year Brewer Company acquired all of the .pdfDuring the current year Brewer Company acquired all of the .pdf
During the current year Brewer Company acquired all of the .pdf
 
ii If the second segment is lost what is the acknowledgeme.pdf
ii If the second segment is lost what is the acknowledgeme.pdfii If the second segment is lost what is the acknowledgeme.pdf
ii If the second segment is lost what is the acknowledgeme.pdf
 
Given the matrices B132122Fpath dM403 1759 V84 H666 .pdf
Given the matrices B132122Fpath dM403 1759 V84 H666 .pdfGiven the matrices B132122Fpath dM403 1759 V84 H666 .pdf
Given the matrices B132122Fpath dM403 1759 V84 H666 .pdf
 
Destruction results in loss of communication between the R a.pdf
Destruction results in loss of communication between the R a.pdfDestruction results in loss of communication between the R a.pdf
Destruction results in loss of communication between the R a.pdf
 
As of 2010 Xerox Corporation NYSE XRX is a 22 billion .pdf
As of 2010 Xerox Corporation NYSE XRX is a 22 billion .pdfAs of 2010 Xerox Corporation NYSE XRX is a 22 billion .pdf
As of 2010 Xerox Corporation NYSE XRX is a 22 billion .pdf
 
ACCT 215 CT Accounting Cycle Problem The John Marshall Com.pdf
ACCT 215 CT Accounting Cycle Problem The John Marshall Com.pdfACCT 215 CT Accounting Cycle Problem The John Marshall Com.pdf
ACCT 215 CT Accounting Cycle Problem The John Marshall Com.pdf
 
El caso Una maana de lunes a viernes en 2007 Bethanye Blo.pdf
El caso  Una maana de lunes a viernes en 2007 Bethanye Blo.pdfEl caso  Una maana de lunes a viernes en 2007 Bethanye Blo.pdf
El caso Una maana de lunes a viernes en 2007 Bethanye Blo.pdf
 

Recently uploaded

678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 

Recently uploaded (20)

678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 

need on c++ Task 1 Design a class for Singly linked List wi.pdf

  • 1. need on c++ Task 1: Design a class for Singly linked List with data members data and next pointer. Your class must provide implementation for the following - A default constructor for Node - A parameterized constructor - Getters for data and next - Setters for data and next Design a linkedList class with a pointer of type Node. This will carry the address of head initially, later it will be required for traversal. Your class must provide implementation for the following - A default constructor - Insert function to insert data item. For every new data element to be inserted, you will have to reach up to the end point of LL and then perform insertion - Insert to head function to insert data element at the start of your LL - Design isEmpty to check if there is no data element in the LL - Why don't you need to design isFull? - A Search function to search for any element provided by user - Update function to update/replace one data element with another - A function Insert at index that will count data elements in the LL and then place a new data element in the specified location. To know exactly after which node we have to make insertion, we need count the elements and that will help us to identify index (index doesn't exist actually, but we are using this term to get to know the location for insertion) - A function Delete to delete the specified data element, for this you will have to save the address of the next node that appears after the one to be deleted. Saving the address will help you after deleting the element to concatenate the list with the elements appearing after the element that is supposed to be deleted. - A function to print the data of LL