SlideShare a Scribd company logo
1 of 1
Download to read offline
Objectives 1. Understand the design, implementation, usage and limitation of a Linked List
ADT 2. Gain experience implementing abstract data t types using already developed data
structures Recognize and practice possible linked list applications. 3. Overview In this project,
you should write a simple line editor. Keep the entire text on a linked list, one line in a separate
node. Start the program with entering EDIT file, after which a prompt appears along with the line
number. If the letter I is entered with a number n following it, then insert the text to be followed
before line n. If I is not followed by a number, then insert the text before the current line. If D is
entered with two numbers n and m, one n, or no number following it, then delete lines n through
m, line n, or the current line. Do the same with the command L, which stands for listing lines. If
A is entered, then append the text to the existing lines. Entry E signifies exit and saving the text
in a file. Here is an Example: EDIT testfile 1> The first line 2> 3> And another line 4>I 3 3 The
second line 4> One more line 5> L 1> The first line 3 The second line 4> One more line 5 And
another line 5> D 2 4> L // This is now line 5, not 3; // line 5, since L was issued from line 5
//line 4, since one line was deleted; 1 The first line 2> The second line 3> One more line 4> And
another line 4> E // this and the following lines // now have new numbers
Solution

More Related Content

Similar to Objectives 1. Understand the design, implementation, usage and limita.pdf

Cs6660 compiler design may june 2016 Answer Key
Cs6660 compiler design may june 2016 Answer KeyCs6660 compiler design may june 2016 Answer Key
Cs6660 compiler design may june 2016 Answer Keyappasami
 
Theory of automata and formal language lab manual
Theory of automata and formal language lab manualTheory of automata and formal language lab manual
Theory of automata and formal language lab manualNitesh Dubey
 
Programming for problem solving ppts unit 1
Programming for problem solving ppts unit 1Programming for problem solving ppts unit 1
Programming for problem solving ppts unit 1lakshmi lingutla
 
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21chinthala Vijaya Kumar
 
Advance data structure
Advance data structureAdvance data structure
Advance data structureashok kumar
 
c_programming.pdf
c_programming.pdfc_programming.pdf
c_programming.pdfHome
 
Please write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdfPlease write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdffazilfootsteps
 
CS 107 – Introduction to Computing and Programming – Spring 20.docx
CS 107 – Introduction to Computing and Programming – Spring 20.docxCS 107 – Introduction to Computing and Programming – Spring 20.docx
CS 107 – Introduction to Computing and Programming – Spring 20.docxfaithxdunce63732
 
C programming notes.pdf
C programming notes.pdfC programming notes.pdf
C programming notes.pdfAdiseshaK
 
Intermediate code generation
Intermediate code generationIntermediate code generation
Intermediate code generationRamchandraRegmi
 
C programming | Class 8 | III Term
C programming  | Class 8  | III TermC programming  | Class 8  | III Term
C programming | Class 8 | III TermAndrew Raj
 
Engineering CS 5th Sem Python Module -2.pptx
Engineering CS 5th Sem Python Module -2.pptxEngineering CS 5th Sem Python Module -2.pptx
Engineering CS 5th Sem Python Module -2.pptxhardii0991
 
Lecture 6: linked list
Lecture 6:  linked listLecture 6:  linked list
Lecture 6: linked listVivek Bhargav
 
Chapter 2 Basics of MATLAB
Chapter 2 Basics of MATLABChapter 2 Basics of MATLAB
Chapter 2 Basics of MATLABPranoti Doke
 
Impact of indentation in programming
Impact of indentation in programmingImpact of indentation in programming
Impact of indentation in programmingijpla
 

Similar to Objectives 1. Understand the design, implementation, usage and limita.pdf (20)

Cs6660 compiler design may june 2016 Answer Key
Cs6660 compiler design may june 2016 Answer KeyCs6660 compiler design may june 2016 Answer Key
Cs6660 compiler design may june 2016 Answer Key
 
Theory of automata and formal language lab manual
Theory of automata and formal language lab manualTheory of automata and formal language lab manual
Theory of automata and formal language lab manual
 
Programming for problem solving ppts unit 1
Programming for problem solving ppts unit 1Programming for problem solving ppts unit 1
Programming for problem solving ppts unit 1
 
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
 
Advance data structure
Advance data structureAdvance data structure
Advance data structure
 
c_programming.pdf
c_programming.pdfc_programming.pdf
c_programming.pdf
 
Please write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdfPlease write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdf
 
C notes
C notesC notes
C notes
 
CS 107 – Introduction to Computing and Programming – Spring 20.docx
CS 107 – Introduction to Computing and Programming – Spring 20.docxCS 107 – Introduction to Computing and Programming – Spring 20.docx
CS 107 – Introduction to Computing and Programming – Spring 20.docx
 
C material
C materialC material
C material
 
pyton Notes6
 pyton Notes6 pyton Notes6
pyton Notes6
 
Aniket tore
Aniket toreAniket tore
Aniket tore
 
C programming notes.pdf
C programming notes.pdfC programming notes.pdf
C programming notes.pdf
 
Intermediate code generation
Intermediate code generationIntermediate code generation
Intermediate code generation
 
C programming notes
C programming notesC programming notes
C programming notes
 
C programming | Class 8 | III Term
C programming  | Class 8  | III TermC programming  | Class 8  | III Term
C programming | Class 8 | III Term
 
Engineering CS 5th Sem Python Module -2.pptx
Engineering CS 5th Sem Python Module -2.pptxEngineering CS 5th Sem Python Module -2.pptx
Engineering CS 5th Sem Python Module -2.pptx
 
Lecture 6: linked list
Lecture 6:  linked listLecture 6:  linked list
Lecture 6: linked list
 
Chapter 2 Basics of MATLAB
Chapter 2 Basics of MATLABChapter 2 Basics of MATLAB
Chapter 2 Basics of MATLAB
 
Impact of indentation in programming
Impact of indentation in programmingImpact of indentation in programming
Impact of indentation in programming
 

More from sivakumar19831

Problem I. As shown in the pedigree below, a pair of first cousins (.pdf
Problem I. As shown in the pedigree below, a pair of first cousins (.pdfProblem I. As shown in the pedigree below, a pair of first cousins (.pdf
Problem I. As shown in the pedigree below, a pair of first cousins (.pdfsivakumar19831
 
Points are assigned both on the correctness of the answer and the com.pdf
Points are assigned both on the correctness of the answer and the com.pdfPoints are assigned both on the correctness of the answer and the com.pdf
Points are assigned both on the correctness of the answer and the com.pdfsivakumar19831
 
Predefined Characters in C Type. Please make sure the program compil.pdf
Predefined Characters in C Type. Please make sure the program compil.pdfPredefined Characters in C Type. Please make sure the program compil.pdf
Predefined Characters in C Type. Please make sure the program compil.pdfsivakumar19831
 
Objective Binary Search Tree traversal (2 points)Use traversal.pp.pdf
Objective Binary Search Tree traversal (2 points)Use traversal.pp.pdfObjective Binary Search Tree traversal (2 points)Use traversal.pp.pdf
Objective Binary Search Tree traversal (2 points)Use traversal.pp.pdfsivakumar19831
 
On January 1, 2017, Pinnacle Corporation exchanged $3,527,500 cash f.pdf
On January 1, 2017, Pinnacle Corporation exchanged $3,527,500 cash f.pdfOn January 1, 2017, Pinnacle Corporation exchanged $3,527,500 cash f.pdf
On January 1, 2017, Pinnacle Corporation exchanged $3,527,500 cash f.pdfsivakumar19831
 
Most of the functions of a cell membrane are performed by proteins ch.pdf
Most of the functions of a cell membrane are performed by proteins ch.pdfMost of the functions of a cell membrane are performed by proteins ch.pdf
Most of the functions of a cell membrane are performed by proteins ch.pdfsivakumar19831
 
New Nirvana Ltd is a company controlled by the members of the hard r.pdf
New Nirvana Ltd is a company controlled by the members of the hard r.pdfNew Nirvana Ltd is a company controlled by the members of the hard r.pdf
New Nirvana Ltd is a company controlled by the members of the hard r.pdfsivakumar19831
 
Malaria being spread by mosquitoes is an example of which type of dis.pdf
Malaria being spread by mosquitoes is an example of which type of dis.pdfMalaria being spread by mosquitoes is an example of which type of dis.pdf
Malaria being spread by mosquitoes is an example of which type of dis.pdfsivakumar19831
 
In oxidative phosphorylation and phosphorylation, the enzyme ATP synt.pdf
In oxidative phosphorylation and phosphorylation, the enzyme ATP synt.pdfIn oxidative phosphorylation and phosphorylation, the enzyme ATP synt.pdf
In oxidative phosphorylation and phosphorylation, the enzyme ATP synt.pdfsivakumar19831
 
List and define the significance of the following proteinsstructures.pdf
List and define the significance of the following proteinsstructures.pdfList and define the significance of the following proteinsstructures.pdf
List and define the significance of the following proteinsstructures.pdfsivakumar19831
 
In this TEM image, what does the TEM allow you to view that would no.pdf
In this TEM image, what does the TEM allow you to view that would no.pdfIn this TEM image, what does the TEM allow you to view that would no.pdf
In this TEM image, what does the TEM allow you to view that would no.pdfsivakumar19831
 

More from sivakumar19831 (11)

Problem I. As shown in the pedigree below, a pair of first cousins (.pdf
Problem I. As shown in the pedigree below, a pair of first cousins (.pdfProblem I. As shown in the pedigree below, a pair of first cousins (.pdf
Problem I. As shown in the pedigree below, a pair of first cousins (.pdf
 
Points are assigned both on the correctness of the answer and the com.pdf
Points are assigned both on the correctness of the answer and the com.pdfPoints are assigned both on the correctness of the answer and the com.pdf
Points are assigned both on the correctness of the answer and the com.pdf
 
Predefined Characters in C Type. Please make sure the program compil.pdf
Predefined Characters in C Type. Please make sure the program compil.pdfPredefined Characters in C Type. Please make sure the program compil.pdf
Predefined Characters in C Type. Please make sure the program compil.pdf
 
Objective Binary Search Tree traversal (2 points)Use traversal.pp.pdf
Objective Binary Search Tree traversal (2 points)Use traversal.pp.pdfObjective Binary Search Tree traversal (2 points)Use traversal.pp.pdf
Objective Binary Search Tree traversal (2 points)Use traversal.pp.pdf
 
On January 1, 2017, Pinnacle Corporation exchanged $3,527,500 cash f.pdf
On January 1, 2017, Pinnacle Corporation exchanged $3,527,500 cash f.pdfOn January 1, 2017, Pinnacle Corporation exchanged $3,527,500 cash f.pdf
On January 1, 2017, Pinnacle Corporation exchanged $3,527,500 cash f.pdf
 
Most of the functions of a cell membrane are performed by proteins ch.pdf
Most of the functions of a cell membrane are performed by proteins ch.pdfMost of the functions of a cell membrane are performed by proteins ch.pdf
Most of the functions of a cell membrane are performed by proteins ch.pdf
 
New Nirvana Ltd is a company controlled by the members of the hard r.pdf
New Nirvana Ltd is a company controlled by the members of the hard r.pdfNew Nirvana Ltd is a company controlled by the members of the hard r.pdf
New Nirvana Ltd is a company controlled by the members of the hard r.pdf
 
Malaria being spread by mosquitoes is an example of which type of dis.pdf
Malaria being spread by mosquitoes is an example of which type of dis.pdfMalaria being spread by mosquitoes is an example of which type of dis.pdf
Malaria being spread by mosquitoes is an example of which type of dis.pdf
 
In oxidative phosphorylation and phosphorylation, the enzyme ATP synt.pdf
In oxidative phosphorylation and phosphorylation, the enzyme ATP synt.pdfIn oxidative phosphorylation and phosphorylation, the enzyme ATP synt.pdf
In oxidative phosphorylation and phosphorylation, the enzyme ATP synt.pdf
 
List and define the significance of the following proteinsstructures.pdf
List and define the significance of the following proteinsstructures.pdfList and define the significance of the following proteinsstructures.pdf
List and define the significance of the following proteinsstructures.pdf
 
In this TEM image, what does the TEM allow you to view that would no.pdf
In this TEM image, what does the TEM allow you to view that would no.pdfIn this TEM image, what does the TEM allow you to view that would no.pdf
In this TEM image, what does the TEM allow you to view that would no.pdf
 

Recently uploaded

UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptxPoojaSen20
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya - UEM Kolkata Quiz Club
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45MysoreMuleSoftMeetup
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptxmanishaJyala2
 
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...Denish Jangid
 
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptxHVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptxKunal10679
 
Software testing for project report .pdf
Software testing for project report .pdfSoftware testing for project report .pdf
Software testing for project report .pdfKamal Acharya
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
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 researchCaitlinCummins3
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryEugene Lysak
 
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Ư...Nguyen Thanh Tu Collection
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdfVikramadityaRaj
 
The Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptxThe Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptxNehaChandwani11
 

Recently uploaded (20)

UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
 
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...
 
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptxHVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
Software testing for project report .pdf
Software testing for project report .pdfSoftware testing for project report .pdf
Software testing for project report .pdf
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
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
 
IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
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Ư...
 
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf
 
Word Stress rules esl .pptx
Word Stress rules esl               .pptxWord Stress rules esl               .pptx
Word Stress rules esl .pptx
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
The Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptxThe Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptx
 

Objectives 1. Understand the design, implementation, usage and limita.pdf

  • 1. Objectives 1. Understand the design, implementation, usage and limitation of a Linked List ADT 2. Gain experience implementing abstract data t types using already developed data structures Recognize and practice possible linked list applications. 3. Overview In this project, you should write a simple line editor. Keep the entire text on a linked list, one line in a separate node. Start the program with entering EDIT file, after which a prompt appears along with the line number. If the letter I is entered with a number n following it, then insert the text to be followed before line n. If I is not followed by a number, then insert the text before the current line. If D is entered with two numbers n and m, one n, or no number following it, then delete lines n through m, line n, or the current line. Do the same with the command L, which stands for listing lines. If A is entered, then append the text to the existing lines. Entry E signifies exit and saving the text in a file. Here is an Example: EDIT testfile 1> The first line 2> 3> And another line 4>I 3 3 The second line 4> One more line 5> L 1> The first line 3 The second line 4> One more line 5 And another line 5> D 2 4> L // This is now line 5, not 3; // line 5, since L was issued from line 5 //line 4, since one line was deleted; 1 The first line 2> The second line 3> One more line 4> And another line 4> E // this and the following lines // now have new numbers Solution