Install GNUPlot -> sudo apt-get install -y gnuplot
Q1. Move to that directory & just:
gcc Q1.c
./a.out
And see the plot file.
Q2. Move to that directory & just:
gcc Q2.c
./a.out
And see the plot file.
Q3.
Move to that directory & just:
gcc Q3.c
./a.out
And see the plot file.
Q4 a) Move to that directory & just:
gcc 4a.c
./a.out data.txt mean.txt
And see the mean.txt Output File.
Q4 b) Move to that directory & just:
gcc 4b.c
./a.out data.txt mean.txt variance.txt
And see the variance.txt Output File & the also the q4b.pdf graph.
Q4 c) Move to that directory & just:
gcc 4c.c
./a.out data.txt mean.txt output.txt
And see the output.txt Output File.
Q5 a) Move to that directory & just:
gcc 5a.c
./a.out
And see the output on terminal.
Q5 b) Move to that directory & just:
gcc 5b.c
./a.out
And see the output on terminal.
Q5 c) Move to that directory &:
gcc 5c_encrypt.c
./a.out <input file> <key txt file> <encrypt txt file>
gcc 5c_decrypt.c
./a.out <key txt file> <encrypt txt file> <output file>
And see the output file.
Input & Output File can be an image, text file, PDF FIle, etc. of any size, Program can handle most of them efficiently.
Q6. Move to that directory & just:
gcc 6.c
./a.out q6_ans.txt <list of space separated input files>
And see the output file.
Q7. Move to that directory & just:
gcc 7.c
./a.out q7_ans.txt <list of space separated input files>
And see the output file.
Q8. Move to that directory & just:
gcc 8.c
./a.out input1.txt input2.txt q8_ans.txt
And see the output file.
Q9. Move to that directory & just:
gcc 9.c
./a.out input.txt output.txt
And see the output file. (Output file name can be same as the Input file name too, i.e. Final Output in the same File)