Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

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

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

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

    • one year ago
  2. liliy Group Title
    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; }

    • one year ago
  3. marv_1 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    The code using netbean

    • one year ago
  4. marv_1 Group Title
    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

    • one year ago
  5. marv_1 Group Title
    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

    • one year ago
  6. liliy Group Title
    Best Response
    You've already chosen the best response.
    Medals 3

    i dont know what netbean is, sorry

    • one year ago
  7. marv_1 Group Title
    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

    • one year ago
  8. marv_1 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    it through java Oracle

    • one year ago
  9. marv_1 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    is this all I would need for this code liliy

    • one year ago
  10. liliy Group Title
    Best Response
    You've already chosen the best response.
    Medals 3

    ya. i think so.

    • one year ago
  11. marv_1 Group Title
    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

    • one year ago
  12. Meepi Group Title
    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

    • one year ago
  13. Meepi Group Title
    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 :/

    • one year ago
  14. marv_1 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    this is all I would need

    • one year ago
  15. marv_1 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    so just enter this liliy

    • one year ago
  16. marv_1 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Thank you

    • one year ago
  17. marv_1 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    is this what I would need to put in meepi

    • one year ago
  18. marv_1 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Welcome

    • one year ago
  19. KonradZuse Group Title
    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 ;).

    • one year ago
    • Attachments:

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