I need to divide the total sales by 500 to get the discount threshold for an assignment I'm working on, and I can't figure out what is wrong. Apologies if this is a dumb question, but I'm in my first few weeks learning java.
String nameDFF;
String inputStringDFF;
int quantityDFF, discountThresholdDFF;
double salesPriceDFF, totalSalesAmountDFF;
//Create a new Scanner object to read user's input
Scanner keyboard = new Scanner(System.in);
//Get the user's name
System.out.print("What is your name? ");
nameDFF = keyboard.nextLine();
//Get the the user's quantity they want to buy
System.out.print("\nWhat is the quantity you want to buy?\n Enter a whole number greater than or equal to 1.");
quantityDFF = keyboard.nextInt();
//Get the sales price of the item
System.out.print("\nWhat is the sales price of the item?\n Enter the value greater than 0.");
salesPriceDFF = keyboard.nextDouble();
//Calculate total sales amount
totalSalesAmountDFF = quantityDFF * salesPriceDFF;
//Calculate the discount threshold
discountThresholdDFF = totalSalesAmountDFF / 500;
}