import java.util.Scanner;
public class CalculatingSales
{
private static boolean Double;
public static void main(String[] args)
{
Scanner input = new Scanner ( System.in );
int ProductNumber;
double RetailPrice;
double total = 0;
int Product1Count = 0;
int Product2Count = 0;
int Product3Count = 0;
int Product4Count = 0;
int Product5Count = 0;
System.out.print (" Enter Product Number: ");
ProductNumber = input.nextInt();
Switch ( ProductNumber );
{
case 1:
System.out.print("Product1 Retail Price is 2.98");
break;
case 2:
System.out.print("Product2 Retail Price is 4.50 ");
break;
case 3:
System.out.print("Product3 Retail Price is 9.98");
break;
case 4:
System.out.print("Product4 Retail Price is 4.49");
break;
case 5:
System.out.print("Product5 Retail Price is 6.87");
default :
System.Out.print("We are sorry, we do not have this product");
System.out.print("Enter Retail Price");
RetailPrice = input.nextDouble();
while ( RetailPrice != -1);
{
total += RetailPrice;
}
System.out.print("Total Price of Products sold " + total);
System.out.printf("%s\n%s%d\n%s%d\n%s%d\n%s%d\n%s%d\n",
"Number of items sold for each product:",
"Product1:", Product1Count,
"Product2:", Product2Count,
"Product3:", Product3Count,
"Product4:", Product4Count,
"Product5:", Product5Count);
}
}
}
IT KEEPS TELLING ME THAT IT CAN'T FIND SYMPOLE.
PLZZ HELP ME