Project #9387 - Programming in C Help

You are to write a complete program that opens an input file Lists.in, reads the
instructions from the file and writes the output to a Lists.out file. The instructions
correspond to the functions to be completed in the Lists.c file. An initial list is given in
Lists.in. An example of a Lists.in file is:
10
11 22 33 4 58 6 72 8 49 120
Move 3 7
Delete 9 0
Insert 7 9
Insert 10 11
Merge 3 4


The first line of the Lists.in file contains a number which represents the number of
elements of the initial list.
The second line of the Lists.in file is the elements of the initial list.
The next lines (until the end of the file) are the set of instructions.
Your program should print the initial list in Lists.out and then print the list after each
instruction has been executed. An example of a Lists.out file for the above Lists.in file
would be:
11 22 33 4 58 6 72 8 49 120
11 22 33 58 6 72 8 4 49 120
11 22 33 58 6 72 8 4 49
11 22 33 58 6 72 8 9 4 49
11 22 33 58 6 72 8 9 4 49 11
11 22 33 64 72 8 9 4 49 11

Subject Computer
Due By (Pacific Time) 07/19/2013 11:59 pm
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy