Table 1 shows the criteria used by a supermarket to award discounts to the customers based on the amount spent.
Write a C program that prompts the user for the amount spent. The program should use a function to calculate and display the net amount paid by the customer. (8 marks)
Hint: net amount=amount spent-(discount rate X amount spent)