anonymous
  • anonymous
I need help in writing a java code for this. A sales person fixed salary is $50,000. A sales person will also receive a commission as an incentive. commission is a percentage of the sales person annual sale. The current commission is 10% of the total sales The total annual compensation is the fixed salary plus the commission earned. Need help in java code for this please.
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
TAC= FS+CE What specifically do you need to write?
anonymous
  • anonymous
you could create a small method that takes in Total sales earned Public int totalSalary( int totalSale) { int percent= .10 * totalSale; intTotalSalary= fixedSalary+percent; return TotalSalary; }
anonymous
  • anonymous
The code using netbean

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
Would it be perfect if I just do a small method like u have
anonymous
  • anonymous
I would type this in under the public void section correct. would I have to figure it out at the exit part
anonymous
  • anonymous
i dont know what netbean is, sorry
anonymous
  • anonymous
it is a java program in helping to write code instead of using command
anonymous
  • anonymous
it through java Oracle
anonymous
  • anonymous
is this all I would need for this code liliy
anonymous
  • anonymous
ya. i think so.
anonymous
  • anonymous
okay I thought I would have to figure out the total for the exit portion
anonymous
  • anonymous
You need to write a method for the salary of the salesman, which is dependent on the total sales. So you would write a method that takes an int as argument for total sales, and returns the total salary as another int (Since we can probably assume the commission gets rounded to the nearest dollar): public int calculateTAC(int totalSales) { int ce = totalSales/10; int tac = 50000 + ce; return tac; } So basically what liliy already said, except his piece of code was missing the method definition around it
anonymous
  • anonymous
Nevermind my bad, I didn't see the public int on the first line :/
anonymous
  • anonymous
this is all I would need
anonymous
  • anonymous
so just enter this liliy
anonymous
  • anonymous
Thank you
anonymous
  • anonymous
is this what I would need to put in meepi
anonymous
  • anonymous
Welcome
KonradZuse
  • KonradZuse
There is more that you need, but you should know if your program outputs correctly or not ;).

Looking for something else?

Not the answer you are looking for? Search for more explanations.