Is this what you're looking for?
Compiling 4 source files to C:\Users\Marci\Desktop\School\PRG 420\CommissionCalculator\CommissionCalculator\build\classes
C:\Users\Marci\Desktop\School\PRG...
Type: Posts; User: mrivera8504
Is this what you're looking for?
Compiling 4 source files to C:\Users\Marci\Desktop\School\PRG 420\CommissionCalculator\CommissionCalculator\build\classes
C:\Users\Marci\Desktop\School\PRG...
I'm not sure.
Unfortunately, it's a self paced class, so they make us jump right into the IDE.
1397
The compiler option is grayed out. Here is the screenshot in picture format.
Here's the screenshot of where the error is. 1396
'void' type not allowed here
not a statement
When I run it, I get: run:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - not a statement
at...
Ok, I think I got that solved, but now it doesn't like the "null"
JOptionPane.showMessageDialog (null,
"n" + "Total Sales" + "Total Compensation" + "/n" +
"n" + (...
Something like this:
JOptionPane.showMessageDialog (null,
("n") "Total Sales" + "Total Compensation" + ("/n")
("n") ( dollar.format(sales) +...
The first message comes through, but the second is "Total SalesTotal Compensation 100,000.00100,000.0075,000.00"
I want it to look like this:
Total Sales Total...
I see where I made that mistake. I can't get the table to come through correctly.
package commissioncalculator;
import java.text.DecimalFormat;
import javax.swing.JOptionPane;
/**
This part of it has the error so far:
if (sales>=(.80 * sales) && sales<=120,000) Error: ')'expected
incentive = (.75 * sales);
else if (sales >120,000) Error:...
I've altered it a little bit. I think I'm getting closer.
package commissioncalculator;
import java.text.DecimalFormat;
import javax.swing.JOptionPane;
/**
* @author Marci
I'm struggling to get the incentive part correct. And I have no idea where to start to display the table. Here are the instructions and the code below.
· A salesperson will continue to...