subject

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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
Hassan is writing his master’s thesis, which is a thirty-page document. he received some feedback from his professor in the form of comments, but does not see where the comments are. what is the fastest way for hassan to find the feedback?
Answers: 3
question
Computers and Technology, 22.06.2019 17:20
[a] create a class called “cycle” which has two instance integer variables as properties, “numberofwheels” and “weight.” create a constructor with two parameters, using the same variable names in the parameter list. assign each variable to numberofwheels” and “weight” respectively. write a separate application to test the class and display its properties. note: do not change the names of the instance variables or the variables listed in the constructor’s parameter list. [b] edit your class cycle by adding a default constructor which will assign the default values of 100 to represent the numberofwheels, and 1000 to represent the weight, by invoking a call to the other constructor. modify your application created in [a] to test the class.
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
Why is an outfitting a workspace with video games in a technology development company considered a strategic use of money
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The more powerful, 60 volt cables and the main power shut off on an hev are both colored orange
Answers: 1
You know the right answer?
Java Eclipse homework. I need help coding this Challenge 9B - Commission

Package: chall...
Questions
question
Chemistry, 09.09.2021 04:10
question
Mathematics, 09.09.2021 04:10
question
English, 09.09.2021 04:10
question
Mathematics, 09.09.2021 04:10
question
English, 09.09.2021 04:10
question
Mathematics, 09.09.2021 04:10
question
Mathematics, 09.09.2021 04:10
question
History, 09.09.2021 04:10
Questions on the website: 13722361