Reference no: EM13188617
"A salesman earns commission on the sales made. The commission is based on the salesman's job code and sales amount. A salesman with a job code " P" for permanent employee, and sales above 3000 earns 4% commission on the sales made. Salesman with a job code " T" for temporary employee, and sales above 3000 earns 5% commission on the sales made. Produce the pseudocode logic for an algorithm that will compute the commission earned by each salesman. The information is given as follows:
* The output will consist of a screen display showing the Sales person's Name, job code, and commission earned.
* The input will consist of the file with records containing Sales person name, job code, Sales made.
* The processing will compute the commission earned by each Salesman to display the required output. If the Salesman's job code is other than "P", or "T", there should be no commission.
Note: Your solution should contain a mainline, and at least three subroutines.
Evaluate the expressions below, based on the hierarchy of operations for efficient processing:
i) (2+8)*( ( (3^2)/3 ) -1*2)+ 5MOD3
ii) Given A has a value of 8, B has a value 2, and C has a value of 5, evaluate :
(A =7 XOR B =2) AND C < 9
3. Create a pseudocode using if instruction containing a compound condition that will satisfy the following: When SALESPERSON_CODE is equal to PERM and SALE is greater than 4000, display "This Sales person is eligible for a 5 percent commission on the sales." Otherwise, When SALESPERSON_CODE is equal to PERM and SALE is greater than 2500, display "This Sales person is eligible for a 2 percent commission on the sales." In all other cases display, "This person is not eligible for a commission on the sales."
Note: The above text is not in a pseudocode format. You need to use the IF ELSE ENDIF clause in a pseudocode format with appropriate relational and logical operators."
Using hull''s drive theory
: Using Hull's Drive Theory, describe how this theory would and would not be applicable if applied to two or more workplace situations drawn from your personal experience.
|
What is the producers profit-maximizing
: The price that consumers are willing and able to pay for this outputis $40 per unit. If it priduces this output, the firms average total cost is $43 per unit, and its average fixed cost is $8 per unit.
|
Jupiter''s four large moons
: Which statement about Jupiter's four large moons is false?
|
Determine the profit maximizing output using algebra
: Suppose that fixed costs increase by $50 but the prevailing market price remains unchanged. Using algebra determine the effects of this change in cost on the profit maximizing output and the optimal profit. Do you see any change from your answer t..
|
Salesman earns commission on the sales made
: "A salesman earns commission on the sales made. The commission is based on the salesman's job code and sales amount. A salesman with a job code " P" for permanent employee, and sales above 3000 earns 4% commission on the sales made. Salesman with a j..
|
Identify an advantage and disadvantage of each
: Two indicators of economic development include Gross Domestic Product (GDP) and the Human Development Index (HDI). What is the difference between these two ways of measuring levels of economic development Identify an advantage and disadvantage of ..
|
Sounding out words in storybooks
: Carmenita is teaching her son to read by sounding out words in storybooks she reads to him. What approach is she using?
|
Determine total benefit and total cost from an activity
: Suppose that the total benefit and total cost from an activity are, respectively, given by the following equations: B(Q) = 28Q - 5Q^2 and C(Q) = 100 + 8Q. (Note: MB(Q) = 28 - 10Q and MC(Q) - 8.)
|
Consideration in an agreement means
: Consideration in an agreement means, Consideration required in an enforceable contract can take any of the following forms except:
|