Question
in swift Suppose we have 3 salespersons We need to enter their names and their sales amount in 12 months for each Then suppose the
in swift Suppose we have 3 salespersons We need to enter their names and their sales amount in 12 months for each Then suppose the target for quarters as follows: 1st quarter : 230K 2nd quarter: 170K 3rd quarter : 300K 4th quarter: 280K We need to calculate the yearly commission for each salesperson as following: for each quarter if the sales amount >= target the commission = 10% if the sales amount >= 75% of target the commission = 7.5% if the sales amount >= 50% of target the commission is 5% otherwise no commission = zero Calculate the commission of each sales person for the year. then print out names of all salespersons and their commissions Find the quarter (1,2,3,4) when the salespersons hit the target or closest to Use Enum.
USING SWIFT PROGRAMMING LANGUAGE Suppose we have 3 salespersons We need to enter their names and their sales amount in 12 months for each Then suppose the target for quarters as follows: 1st quarter : 230K 2nd quarter: 170K 3rd quarter : 300K 4th quarter: 280K We need to calculate the yearly commission for each salesperson as following: for each quarter if the sales amount >= target the commission = 10% if the sales amount >= 75% of target the commission = 7.5% if the sales amount >= 50% of target the commission is 5% otherwise no commission = zero Calculate the commission of each sales person for the year. then print out names of all salespersons and their commissions Find the quarter (1,2,3,4) when the salespersons hit the target or closest to Use Enum.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started