To do this, I would setup a calibration float table with the five entries (create one of these tables for each input). Then create a subroutine with parameters for: the calibration table, the analog input, and a result float that computes the value (using linear interpolation or whatever method that is needed).
Edit: You would probably want 10 entries in the calibration table if the calibration points are to be configurable.