Question: I have figured out the loop and get the correct outputs. I just cant figure out how to get the output formatted in a table

I have figured out the loop and get the correct outputs. I just cant figure out how to get the output formatted in a table with one column being Commission sales and the other being total salary. Commission sales would be the variable money and the total salary would be the variable salary. Headers at the top of each column would also be great so people know what they are. My code and the question are below this is programmed in java.

package hw4;

public class Homework4 {

public static void main(String[] args) { // TODO Auto-generated method stub

double HolderOne,HolderTwo,Salary,NewMoney; for(double money=2000;money = .01)&&(money = 5000.01)&&(money

}

I have figured out the loop and get the correct outputs. I

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 Commissioa Rato percent percent $10,000.01 and above 2percent $0.01-$5,000 $5,000.01-$10,000 10 Note that this is a graduated rate. The rate for the first $5,000 is at 8%, the next $5000 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. Write a program that will calculate your salary for sales starting at $2,000 and ending at $15,000 incremented by $1,000 each time. Print the result in a table form

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!