An Ostrowski Like Inequality for Convex Functions and Applications