6.11 (FINANCIAL APPLICATION: COMPUTE COMMISSIONS) Write a method that computes the commission, using the scheme in Programming Exercise 5.390. The header of the method is as follows: public static double computeCommission (double salesAmount) Write a test program that displays the following table: Sales Amount 10000 15000 20000 25000 30000 35000 40000 45000 50000 55000 60000 65000 70000 75000 80000 85000 90000 95000 100000 Commission 900.0 1500.0 2100.0 2700.0 3300.0 3900.0 4500.0 5100.0 5700.0 6300.0 6900.0 7500.0 8100.0 8700.0 9300.0 9900.0 10500.0 11100.0 11700.0

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
6.11 (FINANCIAL APPLICATION: COMPUTE COMMISSIONS) Write a
method that computes the commission, using the scheme in Programming
Exercise 5.390. The header of the method is as follows:
public static double computeCommission (double salesAmount)
Write a test program that displays the following table:
Sales Amount
10000
15000
20000
25000
30000
35000
40000
45000
50000
55000
60000
65000
70000
75000
80000
85000
90000
95000
100000
Commission
900.0
1500.0
2100.0
2700.0
3300.0
3900.0
4500.0
5100.0
5700.0
6300.0
6900.0
7500.0
8100.0
8700.0
9300.0
9900.0
10500.0
11100.0
11700.0
Transcribed Image Text:6.11 (FINANCIAL APPLICATION: COMPUTE COMMISSIONS) Write a method that computes the commission, using the scheme in Programming Exercise 5.390. The header of the method is as follows: public static double computeCommission (double salesAmount) Write a test program that displays the following table: Sales Amount 10000 15000 20000 25000 30000 35000 40000 45000 50000 55000 60000 65000 70000 75000 80000 85000 90000 95000 100000 Commission 900.0 1500.0 2100.0 2700.0 3300.0 3900.0 4500.0 5100.0 5700.0 6300.0 6900.0 7500.0 8100.0 8700.0 9300.0 9900.0 10500.0 11100.0 11700.0
*5.39 (FINANCIAL APPLICATION: FIND THE SALES AMOUNT) You have just
started a sales job in a department store. Your pay consists of a base salary and a
commission. The base salary is $5,000. The scheme shown below is used to
determine the commission rate.
Sales Amount
$0.01-$5,000
$5,000.01-$10,000
$10,000.01 and above.
Commission Rate
alo
10%
12%
Note this is a graduated rate. The rate for the first $5,000 is at 8%, the next $5,000
is at 10%, and the rest is at 12%. If the sales amount is 25,000, the commission is
5,000 * 8% +5,000 * 10% +15,000* 12% = $2,700.
Your goal is to earn $30,000 a year. Write a program that finds out the minimum
number of sales you have to generate in order to make $30,000.
Transcribed Image Text:*5.39 (FINANCIAL APPLICATION: FIND THE SALES AMOUNT) You have just started a sales job in a department store. Your pay consists of a base salary and a commission. The base salary is $5,000. The scheme shown below is used to determine the commission rate. Sales Amount $0.01-$5,000 $5,000.01-$10,000 $10,000.01 and above. Commission Rate alo 10% 12% Note this is a graduated rate. The rate for the first $5,000 is at 8%, the next $5,000 is at 10%, and the rest is at 12%. If the sales amount is 25,000, the commission is 5,000 * 8% +5,000 * 10% +15,000* 12% = $2,700. Your goal is to earn $30,000 a year. Write a program that finds out the minimum number of sales you have to generate in order to make $30,000.
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Types of Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education