#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    1
    Rep Power
    0

    Not displaying the amount of total sales compensation only the text is displaying


    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */
    package salescompensation;

    import java.util.Scanner;

    /**
    *
    * @author Devin Roberts
    */
    public class SalesCompensation {

    /**
    * @param args the command line arguments
    */
    public static void main(String[] args) {
    Scanner input= new Scanner( System.in);

    double sales = 0;
    double commisionrate= .08;
    double totalcomp = sales*commisionrate;
    double sum = totalcomp + 30000;

    System.out.print("Enter Sales Amount");
    sales = input.nextInt();
    System.out.println("Total Sales Compensation: $+sum");
    }
    }//end class SalesCompensation
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Posts
    73
    Rep Power
    16
    System.out.println("Total Sales Compensation: $" + sum);

    slink

IMN logo majestic logo threadwatch logo seochat tools logo