Got Homework?
Connect with other students for help. It's a free community.
Here's the question you clicked on:
 0 viewing
marv_1
Group Title
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.
 one year ago
 one year ago
marv_1 Group Title
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.
 one year ago
 one year ago

This Question is Closed

liliy Group TitleBest ResponseYou've already chosen the best response.3
TAC= FS+CE What specifically do you need to write?
 one year ago

liliy Group TitleBest ResponseYou've already chosen the best response.3
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; }
 one year ago

marv_1 Group TitleBest ResponseYou've already chosen the best response.0
The code using netbean
 one year ago

marv_1 Group TitleBest ResponseYou've already chosen the best response.0
Would it be perfect if I just do a small method like u have
 one year ago

marv_1 Group TitleBest ResponseYou've already chosen the best response.0
I would type this in under the public void section correct. would I have to figure it out at the exit part
 one year ago

liliy Group TitleBest ResponseYou've already chosen the best response.3
i dont know what netbean is, sorry
 one year ago

marv_1 Group TitleBest ResponseYou've already chosen the best response.0
it is a java program in helping to write code instead of using command
 one year ago

marv_1 Group TitleBest ResponseYou've already chosen the best response.0
it through java Oracle
 one year ago

marv_1 Group TitleBest ResponseYou've already chosen the best response.0
is this all I would need for this code liliy
 one year ago

liliy Group TitleBest ResponseYou've already chosen the best response.3
ya. i think so.
 one year ago

marv_1 Group TitleBest ResponseYou've already chosen the best response.0
okay I thought I would have to figure out the total for the exit portion
 one year ago

Meepi Group TitleBest ResponseYou've already chosen the best response.0
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
 one year ago

Meepi Group TitleBest ResponseYou've already chosen the best response.0
Nevermind my bad, I didn't see the public int on the first line :/
 one year ago

marv_1 Group TitleBest ResponseYou've already chosen the best response.0
this is all I would need
 one year ago

marv_1 Group TitleBest ResponseYou've already chosen the best response.0
so just enter this liliy
 one year ago

marv_1 Group TitleBest ResponseYou've already chosen the best response.0
is this what I would need to put in meepi
 one year ago

KonradZuse Group TitleBest ResponseYou've already chosen the best response.0
There is more that you need, but you should know if your program outputs correctly or not ;).
 one year ago
See more questions >>>
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.