Encrypting – C

Language: C Programming Language

Assignment:  As the newest hire at a head-hunting company, you have been tasked with the job of hiring more programmers. At great expense, your company has obtained a file containing information about the best prospects the industry has seen in decades. The file, recruits.txt, contains the last and first names of the potential candidates as well as a 9-digit secret identification code, two (2) performance rankings provided by independent agencies and a date. There is one additional complication, the names have been encrypted in case this file falls into the hands of one of your competitors. Your program will need to un-encrypt the names and encrypt them again for saving. The head of security has encrypted each name using a secret code. Your program must do the following:

  • ask the user for the filename(s) containing the information
  • print the contents of the database, sorted by any of the items on the list
  • add a new candidate to the list (i.e., add to the database)
  • search for a particular candidate’s name and display their information
  • remove a candidate from the database (requires searching)
  • save the new database to file(s) that can be later used in the program

Link to C Coding and Comments