Skip to content
This repository was archived by the owner on Jul 3, 2022. It is now read-only.

Bhav Beri CPro Assignment 4 Solutions 2021-22

Notifications You must be signed in to change notification settings

b-beri/Assignment_4_2021111013

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignment_4_2021111013

Bhav Beri CPro Assignment 4 Solutions 2021-22


Install GNUPlot -> sudo apt-get install -y gnuplot


Section - 1

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.


Section - 2

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.


Section -3

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.


Section - 4

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)

About

Bhav Beri CPro Assignment 4 Solutions 2021-22

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages