Assignment #6, EEGR-409, Fall, '09

1. Develop and test the following functions;

   void capitalize_letter(char *s, int nth);
   void replace_letter(char *s, char c1, char c2);
   void reverse_str(char *s);

2. Develop and test;

   void encrypt_str(char *s, int cipher);
   void decrypt_str(char *s, int cipher);

3. Develop and test;

   int compare_strings(char *s1, char *s2);
   int str_to_int(char *s);
   void int_to_str(int v, char *s);

4.
   typedef THREE_VALS
   {
      int a;
      int b;
      int c;
   } THREE_VALS;

   int find_max(THREE_VALS three_vals);
   THREE_VALS arrange_three(THREE_VALS three_vals);

5.
   typedef struct
   {
      int id;
      int sal;
      int age;
   } EMPLOYEE;


   EMPLOYEE fetch_record(void);
   print_record(EMPLOYEE emp);
   sort_employees(EMPLOYEE *array_emp, int num);