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

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

liliy
 2 years ago
Best ResponseYou've already chosen the best response.3you 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; }

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

marv_1
 2 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

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

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

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

marv_1
 2 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

Meepi
 2 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

Meepi
 2 years ago
Best ResponseYou've already chosen the best response.0Nevermind my bad, I didn't see the public int on the first line :/

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

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

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

KonradZuse
 2 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.