Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Write a java program that displays the following interface

Answered: 1 week ago

Question

10. Describe the relationship between communication and power.

Answered: 1 week ago