A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 3 years ago
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.
anonymous
 3 years ago
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.

This Question is Closed

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0TAC= FS+CE What specifically do you need to write?

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0you 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
 3 years ago
Best ResponseYou've already chosen the best response.0The code using netbean

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0Would it be perfect if I just do a small method like u have

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0I would type this in under the public void section correct. would I have to figure it out at the exit part

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0i dont know what netbean is, sorry

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0it is a java program in helping to write code instead of using command

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0it through java Oracle

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0is this all I would need for this code liliy

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0okay I thought I would have to figure out the total for the exit portion

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0You 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
 3 years ago
Best ResponseYou've already chosen the best response.0Nevermind my bad, I didn't see the public int on the first line :/

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0this is all I would need

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0so just enter this liliy

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0is this what I would need to put in meepi

KonradZuse
 3 years ago
Best ResponseYou've already chosen the best response.0There is more that you need, but you should know if your program outputs correctly or not ;).
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.