In the textbox provided, write Swift code to that will accom…
In the textbox provided, write Swift code to that will accomplish the following tasks: =================== 1- CREATE. a function that takes TWO DOUBLE values (SALES and COMMISSION RATE – both are double values. ) ========================================= 2- Inside the function use the “guard” statement to Check to see if the the sales is 20,000 or LESS and the commission rate is UNDER 15% If this is met it will print “did not meet minimum” If not met it will print “Met minimum” 3. Execute the function TWICE: 3A. Sales is 20,000 and commission rate is 18% 3b. Sales is 22,000 and commission rate is 24% +++++++++++++++++++++++