Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

My Phone Company pays their salesman a base salary plus a commission by product

ID: 3767215 • Letter: M

Question

My Phone Company pays their salesman a base salary plus a commission by product
line if the salesman sells more than the base sales. The table below gives the base
sales and commission percent for each product line.

Description Base Sales Percent
Smart Phones 6000.00 25
Service Contracts 3500.00 10
Accessories 2000.00 5
Maintenance Contracts 500.00 7

Write a Java program that does the following:
Read a three-digit salesman identification number, a double base salary, and a
double sales amount for each of the four categories.
Compute the commission earned in each of the four categories.
Print the identification number and base salary.
For each of the four categories, print the description, the sales amount, the
commission amount.
Print the total commission paid to the employee and the total paid.
Continue looping (requesting a new salesman id) until -999 is inputted for
Salesman Number
The commission for each line item MUST be completed in a method. There
will be only one method to calculate all four line items. The prototype of this
method will be
double calcComm(double sales, double base, double percent);
The display for each line item will also be completed in a void method.

Explanation / Answer

My Phone Company pays their salesman a base salary plus a commission by product
line if the salesman sells more than the base sales. The table below gives the base
sales and commission percent for each product line.

Description Base Sales Percent
Smart Phones 6000.00 25
Service Contracts 3500.00 10
Accessories 2000.00 5
Maintenance Contracts 500.00 7

Write a Java program that does the following:
Read a three-digit salesman identification number, a double base salary, and a
double sales amount for each of the four categories.
Compute the commission earned in each of the four categories.
Print the identification number and base salary.
For each of the four categories, print the description, the sales amount, the
commission amount.
Print the total commission paid to the employee and the total paid.
Continue looping (requesting a new salesman id) until -999 is inputted for
Salesman Number
The commission for each line item MUST be completed in a method. There
will be only one method to calculate all four line items. The prototype of this
method will be
double calcComm(double sales, double base, double percent);
The display for each line item will also be completed in a void metho

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote