Help guys pls (Solved) ( TNX)
The store is running a promotion: if the total value of purchases is equal to or more than 10,000, then the buyer is given a 20% discount. You are given a program that takes the total purchase price as input. Complete the method provided so that the program uses the total purchase amount as an argument, deducts and returns the discount price if the promotion requirements are met. If no discount is provided, the method should output the same price. Sample input 13000 Result example 10400 Explanation 13000> 10000, so the discount is given: 13000- (0.2 * 13000) = 10400. Advice Inside the method, use an if else statement Pls help me with the code, i dont understand why it's not working, explain, ty very very. https://code.sololearn.com/cd3HxfYp4sp6/?ref=app