The question :
Input file: customer’s account number, account balance at beginning of month, transaction type (withdrawal, deposit, in
I guess it is a little too late to answer this question, but I recently stumbled upon the same problem, and my googling led me here.
I think the most common case for InputMismatchException thrown by Scanner.nextDouble() is that your default locale used by your Scanner expects doubles in different format (for example, 10,5, not 10.5). If that is the case, you should use Scanner.useLocale method like this
Scanner s = new Scanner(System.in);
s.useLocale(Locale.US);