Search:

Type: Posts; User: mrivera8504

Search: Search took 0.14 seconds.

  1. Replies
    22
    Views
    13,986

    Re: Simple Commission Calculator

    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...
  2. Replies
    22
    Views
    13,986

    Re: Simple Commission Calculator

    I'm not sure.
    Unfortunately, it's a self paced class, so they make us jump right into the IDE.
  3. Replies
    22
    Views
    13,986

    Re: Simple Commission Calculator

    1397
    The compiler option is grayed out. Here is the screenshot in picture format.
  4. Replies
    22
    Views
    13,986

    Re: Simple Commission Calculator

    Here's the screenshot of where the error is. 1396
  5. Replies
    22
    Views
    13,986

    Re: Simple Commission Calculator

    '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...
  6. Replies
    22
    Views
    13,986

    Re: Simple Commission Calculator

    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" + (...
  7. Replies
    22
    Views
    13,986

    Re: Simple Commission Calculator

    Something like this:


    JOptionPane.showMessageDialog (null,
    ("n") "Total Sales" + "Total Compensation" + ("/n")
    ("n") ( dollar.format(sales) +...
  8. Replies
    22
    Views
    13,986

    Re: Simple Commission Calculator

    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...
  9. Replies
    22
    Views
    13,986

    Re: Simple Commission Calculator

    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;


    /**
  10. Replies
    22
    Views
    13,986

    Re: Simple Commission Calculator

    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:...
  11. Replies
    22
    Views
    13,986

    Re: Simple Commission Calculator

    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
  12. Replies
    22
    Views
    13,986

    Simple Commission Calculator

    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...
Results 1 to 12 of 12