Quantcast

A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 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.

  • This Question is Closed
  1. liliy
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 3

    TAC= FS+CE What specifically do you need to write?

  2. liliy
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 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; }

  3. marv_1
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    The code using netbean

  4. marv_1
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Would it be perfect if I just do a small method like u have

  5. marv_1
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I would type this in under the public void section correct. would I have to figure it out at the exit part

  6. liliy
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 3

    i dont know what netbean is, sorry

  7. marv_1
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    it is a java program in helping to write code instead of using command

  8. marv_1
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    it through java Oracle

  9. marv_1
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    is this all I would need for this code liliy

  10. liliy
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 3

    ya. i think so.

  11. marv_1
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    okay I thought I would have to figure out the total for the exit portion

  12. Meepi
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 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

  13. Meepi
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Nevermind my bad, I didn't see the public int on the first line :/

  14. marv_1
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    this is all I would need

  15. marv_1
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    so just enter this liliy

  16. marv_1
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Thank you

  17. marv_1
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    is this what I would need to put in meepi

  18. marv_1
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Welcome

  19. KonradZuse
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    There is more that you need, but you should know if your program outputs correctly or not ;).

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

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

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
  • 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.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.