Question: Please help me get the correct answer and code in Linux and make sure it runs correctly thank you input1.txt It was many and many

Please help me get the correct answer and code in Linux and make sure it runs correctly thank you
input1.txt
It was many and many a year ago,
In a kingdom by the sea,
That a maiden there lived whom you may know
By the name of ANNABEL LEE;--
And this maiden she lived with no other thought
Than to love and be loved by me.
She was a child and I was a child,
In this kingdom by the sea,
But we loved with a love that was more than love--
I and my Annabel Lee--
With a love that the winged seraphs of heaven
Coveted her and me.
And this was the reason that, long ago,
In this kingdom by the sea,
A wind blew out of a cloud by night
Chilling my Annabel Lee;
So that her high-born kinsman came
And bore her away from me,
To shut her up in a sepulchre
In this kingdom by the sea.
The angels, not half so happy in Heaven,
Went envying her and me:--
Yes! that was the reason (as all men know,
In this kingdom by the sea)
That the wind came out of a cloud, chilling
And killing my Annabel Lee.
But our love it was stronger by far than the love
Of those who were older than we--
Of many far wiser than we-
And neither the angels in Heaven above,
Nor the demons down under the sea,
Can ever dissever my soul from the soul
Of the beautiful Annabel Lee:--
For the moon never beams without bringing me dreams
Of the beautiful Annabel Lee;
And the stars never rise but I see the bright eyes
Of the beautiful Annabel Lee;
And so, all the night-tide, I lie down by the side
Of my darling, my darling, my life and my bride,
In her sepulchre there by the sea--
In her tomb by the side of the sea.
input2.txt
From childhood's hour I have not been
output1.txt
.aes eht fo edis eht yb bmot reh nI
--aes eht yb ereht erhclupes reh nI
,edirb ym dna efil ym ,gnilrad ym ,gnilrad ym fO
edis eht yb nwod eil I ,edit-thgin eht lla ,os dnA
;eeL lebannA lufituaeb eht fO
seye thgirb eht ees I tub esir reven srats eht dnA
;eeL lebannA lufituaeb eht fO
smaerd em gnignirb tuohtiw smaeb reven noom eht roF
--:eeL lebannA lufituaeb eht fO
luos eht morf luos ym revessid reve naC
,aes eht rednu nwod snomed eht roN
,evoba nevaeH ni slegna eht rehtien dnA
-ew naht resiw raf ynam fO
--ew naht redlo erew ohw esoht fO
evol eht naht raf yb regnorts saw ti evol ruo tuB
.eeL lebannA ym gnillik dnA
gnillihc ,duolc a fo tuo emac dniw eht tahT
)aes eht yb modgnik siht nI
,wonk nem lla sa( nosaer eht saw taht !seY
--:em dna reh gniyvne tneW
,nevaeH ni yppah os flah ton ,slegna ehT
.aes eht yb modgnik siht nI
erhclupes a ni pu reh tuhs oT
,em morf yawa reh erob dnA
emac namsnik nrob-hgih reh taht oS
;eeL lebannA ym gnillihC
thgin yb duolc a fo tuo welb dniw A
,aes eht yb modgnik siht nI
,oga gnol ,taht nosaer eht saw siht dnA
.em dna reh detevoC
nevaeh fo shpares degniw eht taht evol a htiW
--eeL lebannA ym dna I
--evol naht erom saw taht evol a htiw devol ew tuB
,aes eht yb modgnik siht nI
,dlihc a saw I dna dlihc a saw ehS
.em yb devol eb dna evol ot nahT
thguoht rehto on htiw devil ehs nediam siht dnA
--;EEL LEBANNA fo eman eht yB
wonk yam uoy mohw devil ereht nediam a tahT
,aes eht yb modgnik a nI
,oga raey a ynam dna ynam saw tI
output2.txt
neeb ton evah I ruoh s'doohdlihc morF
 Please help me get the correct answer and code in Linux
and make sure it runs correctly thank you input1.txt It was many

with those of other students. (3) You are allowed to use only the system calls covered in the class (e.g. read 0 , write 0 , open0, Iseek (, close () ). You can't use library calls such as fread 0 , fopen 0 , fwrite 0 , ete. If you don't follow this requirement, you will get significant penalty!! (4) Do not change other parts of your program except for the parts beginning with four slashes - there are multiple parts. Assignment Description: Given the template code, "copyReverse.c", fill up the marked portion so that your program is performing the following tasks: - Read from input file whose name is pointed by argv/1]. - Write its reversed file contents into another file whose name is pointed by argv/2/. - You need to use the given buffer size of 100. If you change this, there will be significant point reduction. - Exception handling is important. If your program doesn't handle exceptions of system call failure - e.g., open 0 , read ), write (, Iseek (0 - then you will get some penalty. - You should not change the given template code except for the part designated to be filled up by you. The following is for your own programming and debugging purposes. The only file you need to submit to codePost.io is "copyReverse.c" In Ubuntu, you can compile this program as was discussed in the class: $> gce 0 copyReverse copyReverse.c After the compilation you need to run your program with two file names as commandline arguments such as: $>./ copyReverse file1.txt file2.txt Then your program is supposed to create another file "file2.txt" from the existing file "file 1.txt" after reversing the enntents codePost.io is "copyReverse.c" In Ubuntu, you can compile this program as was discussed in the class: $> gcc 0 copyReverse copyReverse.c After the compilation you need to run your program with two file names as commandline arguments such as: $>./ copyReverse file1.txt file2.txt Then your program is supposed to create another file "file2.txt" from the existing file "file1.txt" after reversing the contents completely. For example, if your input file, file1.txt, contains: GAILY bedight, ABC A gallant knight, GAILY bedight, ABC A gallant knight. GAILY bedight, ABC A gallant knight. GAILY bedight, ABC A gallant knight, GAILY bedight, ABC A gallant knight, GAlLY bedight, ABC A gallant knight, Then, the output file, file2.txt, should contain: ,thgink tnallag ACBA , thgideb YLIAG , thgink tnallag ACBA , thgideb YLIAG , thgink tnallag A CBA , thgideb YLIAG ,thgink tnallag ACBA , thgideb YLIAG ,thgink tnallag ACBA , thgideb YLIAG , thgink tnallag ACBA , thgideb YLIAG

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!