View the step-by-step solution to:

Question

# 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

We can write the method as below: // this method calculates the commission earned based on the number of sales, // and... 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