Difference between revisions of "CSC231 Final Exam Fall 2017"

From dftwiki3
Jump to: navigation, search
Line 41: Line 41:
 
For example, zap2( "Mississippi", "ss" ) will return "Mi--i--ppi".
 
For example, zap2( "Mississippi", "ss" ) will return "Mi--i--ppi".
  
Store you
+
Store your program in a file containing zap2() and any other function you need.  Your program should not contain a main function, as it will be linked with a test program that will contain main().
 
+
<br />
* Have file of ints, and put together a bash file that reads 10 integers, these are indexes of lines to get in the file.
 
Each line contains a number that in hex contains ASCII chars.  This way we can have a multi-char message hidden in a
 
large file.
 
 
 
 
=Bash Script=
 
=Bash Script=
 
+
<br />
  
 
* Write a bash script that contains a ''recursive'' function called '''fact''' that will compute the '''factorial''' of a number passed on the command line.  Call this script '''funcMoodleChallenge.sh'''.
 
* Write a bash script that contains a ''recursive'' function called '''fact''' that will compute the '''factorial''' of a number passed on the command line.  Call this script '''funcMoodleChallenge.sh'''.

Revision as of 17:17, 10 December 2017


...