/*
* Commission.java
*
* Created on January 10, 2008, 3:19 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/

package commission;

/**
*
* @author Andrew
*/
import javax.swing.JOptionPane;
import java.text.DecimalFormat;

public class Commission {

/** Creates a new instance of Commission */
public Commission() {
}

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
double dollars, answer;
int empCode;

dollars = getSales();
System.out.println("The sales amount is: "+dollars);
System.exit(0);
} //end main

public static double getSales()
{
double sales = 0.0;
String answer = JOptionPane.showInputDialog(null,"Enter sales amount or cancel to exit:");
sales = Double.parseDouble(answer);
return sales;
}// end getSales
}