Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a code that extracts lines from line number 709 to 714 from a romeo_and_ju

ID: 3602971 • Letter: W

Question

Write a code that extracts lines from line number 709 to 714 from a romeo_and_juliet.txt in a zip file attached and that dumps those extracted lines into a file called "output.txt". The following are the lines that should be printed in output.txt. The line numbers are not in the file remeo_and_juliet.txt. They are just added for explanation.

709: Wife. Nurse, where's my daughter? Call her forth to me.  
710: Nurse. Now, by my maidenhead at twelve year old,   
711: I bade her come. What, lamb! what ladybird!   
712: God forbid! Where's this girl? What, Juliet!
713:
714: Enter Juliet.

Explanation / Answer

I am going to tell you how to unzip the files and search the file romeo_and_juliet.txt from the unzipped files

Step 2:

its a array of char pointer where all the data is stored

you can access it like

for(int i =708;i<714;i++){

}

outfile.close();

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote