Java Eclipse homework. I need help coding this
Challenge 9B - Commission
Package: chall9B
Class: Commission
Write the entire Java application to satisfy the following requirements:
The pay for a salesman working for a company that sells trucks is based upon a commission. The rate of this commission depends upon his sales success during a month. In other words, his commission rate depends upon the total dollar amount of sales for that month. The scale goes like this:
For each car the sales person gets a $500 dollar commission and for each truck they get $700. If they sell more vehicles they get bonuses based on the chart below.
(For example if a rep sold 6 cars they would get 6*$500 = $3000 + 7.5% Commission = $3,225)
Ask the user for their name and the number of car and truck sales for the month. Use the ‘if’, ‘else if’, ‘else’ structure to calculate the total pay for the employee based upon the trucks sold and bonus structure. Print out the total gross paycheck in an appropriate print statement.
Use DecimalFormat to set the number to print showing 2 decimals.
Enter the following information for a sales rep and record (snip) the output of the console. Include this in the comments so I can check if your program works.
Sales Rep: Bruce Banner sold 4 Cars and 6 Trucks.