View the step-by-step solution to:


Create a method called calcCommission that takes the number of sales as an argument, calculates the commission

(money) earned based on the number of sales, and returns the commission.

After the method, write the statements(s) to call this method with sample data and outputs it's contents to screen.

Place the comment (// Method Call) before this/these statements(s) so I know where the call is.

The Commission is based on the following Formula: sales 50 items and under earn $0 commission, sales between 51 and 100 items earn $70.50 commission, sales above 100 up to 200 items earn $175.75 commission, sales over 200 items earn $0.95 per items sold. Don't forget the keyword static before the method

Top Answer

We can write the method as below: // this method calculates the commission earned based on the number of sales, // and... View the full answer


Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question