change feet and miles to double. Than you can say nextDouble() instead of nextInt()