Program that calculate and output the total cost

  A wholesale supplier of CDs charges €1.50 per CD but gives a % discount based on the number of CDs as follows: more than 500 discount 5% more than 1000 discount 10% more than 5000 discount 25% Write a program that will calculate and output the total cost based on the number of CDs that the customer purchases. The user must input the number of CDs purchased.