Metro supermarket is a new supermarket opening in Riyadh. It offers attractive discounts for its customers.
Write a program that will display to the user his new total price after discount. The program should read the total price from the user, calculate and display the new total price based on the following
• If the total price is greater than or equals to 3000, the discount percentage is 30%
• If the total price is greater than or equals to 1000 and less than 3000, the discount percentage is 20%
• If the total price is greater than or equals to 500 and less than 1000, the discount percentage is 10%
• If total price is less than 500, display that there is no discount
Please follow exactly the sample outputs.
Notice: Use while and do while and for loops to implement this program(write program 3 times using different loops). The program exits when the user enter 0 to quit.
Thx for ur time (",)