created variables for calculations on discount

created variables for calculations  on discount given and printed  to
the console.log