Bot program to count the products bought in the supermarket, with total sum.
static int a = 0; static int b = 0; static int c = 0; static int d = 0; static int e = 0; static int f = 0; static int g = 0; static int h = 0; static int total = 0; public static void main(String[] args) { //write your code here Scanner scanner = new Scanner(System.in); while(true){ String s = scanner.nextLine(); if (s.equals("STOP")){ break; }else if (s.equals("b")){ a++; total += 1.85; }else if (s.equals("c")){ b++; total += 1.65; }else if (s.equals("d")){ c++; total += 0.85; }else if (s.equals("e")){ d++; total += 1.05; }else if (s.