Skip to main content

Table in application not working please Help?

No replies
shiva9963
Offline
Joined: 2013-05-11
Points: 0

The application should also display a table of potential total annual compensation that the salesperson could have earned, in $5000 increments above the salesperson’s annual sales, until it reaches 50% above the salesperson’s annual sales.

I got this

//Table
double tempTotal = annualSales;
double stopTotal = annualSales*1.5;
System.out.println("Total Sales-------------Total Compensation");
while(tempTotal < annualSales*1.5){
System.out.println(tempTotal + "\t\t" + ((commission + tempTotal) * accelFactor));
tempTotal += 5000;