Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

image text in transcribed

csc108 Introduction to Programming Flowchart Commission Table nter table start: 5000 nter table end: 30000 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 Enter increment: 5000 Sales AmountCommission Input: table Start Sales Amount $0.01- $10,000 $10,000.01- $20,000 $20,000.01 and above Commission Rate 15000 1312.S 1875 2600 hout tableEnd 14.50 percent Input: increment Note that this s a graduated rate The rate for the first S10.000 is at 75%, te next $10,000 s at 11.25%, and the rest is at 145%. If the sales amount is S25.000, the commission is 10000" 75%+10000 , 11.25% + 5000 * 14596-2600 Create a Java application in NetBeans called Lab06" that contains a maun method that calls another method that computes the commission using the commission rates described above. The header of the called method is as follows: Enter table start: 1234 Enter table end: 12345 Enter increment: 1000 Sales Amount 1234 Commission poblie static double coneurecsanissiga (double saieakmount) 167.55 To format your table in appropriate dollars and cents, use the following import statement and format method 392.55 467.55 542.55 617.55 692.55 inport java TeXT.DeciaFOMaT DecimalFormat df . new Decina 1 Ea rua tImg###,###,##0.00"); 10234 776.32S 888.82S 1001.325 Output: $364, 565.14 Enter table tart, t.ble end, ard inerement 5000 30000 5000 Commi331on 750.00 $1,312.50 $10,000.00 S15,000.00 $20,000.00 25,000.00 30,000.00 2, 600.00 S3, 325.00 Enter table start, table end, and increment: 1234 12345 1000 Commis ion 1,234.ao 52,234.00 3, 234.00 1.234.00 5,234.00 $6,234.00 7.234.00 242.55 317.55 9392.55 $542.S5 617.55 692.55 $776.33 $988.93 1,001.33 234 , 00 $9, 234.00 $10,234.00 $11,234.00 $12, 234-00 in Blackboard Zip the Lab06 folder and send it to me as an attachment

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions