add comments to explain the if statement as tenary operator making decision and printing out initial cost or total cost