Inequalities for the Riemann–Stieltjes Integral of under the Chord Functions with Applications