Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You have just started a sales job in a department store. Your pay consists of a base salary and a commission. The base salary
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 $10,000.00. The scheme shown below is used to determine the commission rate: Sales Amount $0.01 - $10,000 $10,000.01 - $20,000 $20,000.01 and above Commission Rate 7.50 percent 11.25 percent 14.50 percent Note that this is a graduated rate. The rate for the first $10,000 is at 7.5%, the next $10,000 is at 11.25%, and the rest is at 14.5%. If the sales amount is $25,000, the commission is 10000 * 7.5% +10000 11.25% + 5000*14.5% = 2600. Create a Java application in NetBeans called "Lab06" that contains a main method that calls another method that computes the commission using the commission rates described above. The header of the called method is as follows: public static double computeCommission (double salesAmount) To format your table in appropriate dollars and cents, use the following import statement and format method: import java.text. DecimalFormat; DecimalFormat df = new DecimalFormat("$########0.00"); System.out.println (df. format (364565.14)); Output: $364,565.14 Sample Java output #1: Enter table start, table end, and increment: 5000 30000 5000 Sales Amount $5,000.00 Commission $10,000.00 $15,000.00 $20,000.00 $25,000.00 $30,000.00 $375.00 $750.00 $1,312.50 $1,875.00 $2,600.00 $3,325.00 Sample Java output #2: Enter table start, table end, and increment: 1234 12345 1000 Sales Amount Commission $1,234.00 $2,234.00 $92.55 $167.55 $3,234.00 $242.55 $4,234.00 $317.55 $5,234.00 $392.55 $6,234.00 $467.55 $7,234.00 $542.55 $8,234.00 $617.55 $9,234.00 $692.55 $10,234.00 $776.33 $11,234.00 $12,234.00 $888.83 $1,001.33
Step by Step Solution
There are 3 Steps involved in it
Step: 1
SOLUTION I have solved this problem in Java code with comm...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started