You have just started a sales job in a department store. Your pay consists of a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
On July 1 , 2 0 2 0 , the beginning of its fiscal year, Ridgedale County recorded gross property tax levies of $ 3 , 7 0 0 , 0 0 0 . The county estimated that 3 percent of the taxes levied would be...
-
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...
-
Write a method that computes the commission, using the scheme in Programming Exercise 5.39 . The header of the method is as follows:public static double?computeCommission(double?salesAmount)Write a...
-
The ordinary share capital of PP Ltd (a trading company) is owned 32% by QQ Ltd, 35% by RR Ltd and 23% by SS Ltd. The remaining 10% is owned by various individuals, none of whom own more than 1%. All...
-
Briefly explain the format and content of the ISO Commercial Package Policy (CPP).
-
Compare and contrast the purposes served by direct marketing versus personal selling.
-
Will liquidity premiums tend to rise or fall during a crash? Why?
-
As in all areas of IT, DBMSs are constantly changing and improving. Research how businesses are using DBMSs, and write a report of your findings. Address the following issues: 1. Which popular DBMS...
-
1- If the closing date is June 1 and the sellers real property taxes of $3,000 for the calendar year were prepaid by the seller on February 1st, the appropriate entry on the settlement statement...
-
Given the following project network and baseline information below, complete the form to develop a status report for the project at the end of period 4 and the end of period 8. 0 A 2 0 2 2 2 O Task A...
-
You are a newly appointed engineer on a shaft. It has come to your attention that the rope life on your rock winder is not as prescribed by the OEM. After investigation you gathered information that...
-
Differentiate the cost and value drivers in a projects supply chain.
-
Why does it make sense to model computer vision systems on the human vision system? Can you think of any suitable alternative models?
-
Explain the meaning and importance of supply chain management (SCM).
-
What is a Solution Space?
-
Describe the supply chain performance metrics that are used to track the supply chain performance of a project. What is the rationale for selecting these metrics?
-
what are the advantages and disadvantages of online lectures compared to offline lectures?
-
What are the typical record-at-a-time operations for accessing a file? Which of these depend on the current file record?
-
Which is more costly for an issuer an underwritten deal or a bought deal? Why?
-
Will a shareholder who subscribes a capital increase with a pre-emptive subscription right become poorer if the share price drops after the operation? Why?
-
Which placement procedure carries the most risk for a bank? Why?
Study smarter with the SolutionInn App