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: (TWO TIMES) 3A. FIRST TIME: Sales is 20,000 and commission rate is 18% 3b. SECOND TIME: Sales is 22,000 and commission rate is 24% ——— +++++++++++++++++++++++
Read DetailsIn 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 collection/ARRAY of type [Any], including a few doubles, integers, strings, and booleans within the collection. THEN.. Loop through the Array and Print the contents of the collection. ——————— Values to store in the Array are: ============ SHELTON STATE 22 true 514.55 =============== 2- Loop through the collection/ array and…. === 2a. For each integer, print “The integer has a value of “, followed by the integer value. —— 2b. For each double value, print “The double has a value of “, followed by the double value. —— 2c. For each integer, print “The string has a value of “, followed by the string value. —— 2d. For each boolean, print “The boolean has a value of “, followed by the boolean value. —— =============
Read Details