Update on Final Exam WPF

Created a function to calculate discount of item. Made sure to use the
cost and discount variables as parameters. Added a return to the
function.