Difference and Differential Equations with Applications in Queueing Theory