I'm looking for an algorithm which will allow me to calculate outputs for any given input instead of just the few ones I'm given in advance.
The input is a number from interval $0 - 100$ representing a percentage. I'm given a few of the desired outputs in advance; they correspond to inputs evenly distributed along the whole $0 - 100$ range. For example, if I am given three outputs, A, B and C, they correspond to $100$, $50$ and $0$ respectively. If, instead, I am given five of them, they should correspond to inputs of $100$, $75$, $50$, $25$ and $0$. In between these given values, the output should increase or decrease proportionally. For example, in the first example, the output corresponding to 75 should be right in the middle between A and B (since $75$ is right in the middle between $100$ and $50$ and output $A$ corresponds to input $100$ and output $B$ to input $50$) and the output for $25$ should be right in the middle between $B$ and $C$.
In summary: I'm given an array of values (the "given" outputs) consisting of at least two values. I'm also given an input value in the range $0 - 100$. The algorithm should output a single value corresponding to this input; which satisfies the description above.
Since my background in maths is very limited, I would prefer it if you could explain the mathematical symbols or name the variables something reminiscent of their function.