Salesman earns commission on the sales made

Assignment Help Other Subject
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."

Reference no: EM13188617

Questions Cloud

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:

Reviews

Write a Review

 

Other Subject Questions & Answers

  Individual employee accoungtable to only one supervisor

The owner of adams services inc. believes that an individual employee should be accoungtable to only one supervisor. the principle that adams follow is knowa as?

  Legal drinking age a form of discrimination

Is the legal drinking age a form of discrimination.

  Declaration of independence and bill of rights

Why does Henry Steele Commager claim that the new patriotism makes "a mockery of the Declaration of Independence and Bill of Rights"?

  Description of significant ethical-legal-sociocultural fact

Give a description of a significant ethical, legal, and sociocultural fact on each one relating to tests and measurement in counseling and explain why they are sigificant?

  Review of health development across international countries

Based on the review of health development across international countries, I need to develop criteria on the country of MEXICO

  Malleable and dynamic self

Since the self is malleable and dynamic (Sedikides & Gregg, 2003), would you agree that it is possible for a person to change through feedback received from others?

  Type of tissue with a matrix

The type of tissue with a matrix that consists of rows of fi broblasts that manufacture collagen fibers is:

  client and the OD practitioner

Explain how perceptions play a part in forming the relationship between the client and the OD practitioner. (At least 250 words)

  Overeating or food addiction

Food addiction is very common. There are support groups all over. Overeaters anonymous is very popular actually. What do you think reinforces eating for someone who overeats? What leads to overeating or food addiction?

  Reasons for policy termination

What are some of the reasons for policy termination? What are some of the roadblocks to policy termination? How might these roadblocks be minimized?

  Theoretical perspectives-conflict-functionalist

You can look at sports from several theoretical perspectives comprising conflict, functionalist, interactionist, and feminist. Which of these is most useful in looking at the sociology of sports? Why?

  Social psychology attempts

Social Psychology attempts to describe the social forces which influence attitudes and actions.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd