@Override
    public final void scanItem(final RecordStorageStrategy rss) {
        ValidationStrategy vs1 = new ValidateRange(0, rss.getDBSize() - 1);
        ValidationStrategy vs2 = new ValidateRange(0.1, 999.0);
        int merchNumber;
        double Qtny;
        merchandiseNumberArray = new int[1];
        merchandiseQuantityArray = new double[1];
        Scanner input = new Scanner(System.in);

        int count = 0;
        System.out.println("Enter item number ID(simulate scan id) " + (count + 1) + ":");
        merchandiseNumberArray[count] = input.nextInt();
        checkForCompletedTransaction(merchandiseNumberArray[count], vs1);
        System.out.println("Enter quantity: ");
        merchandiseQuantityArray[count] = input.nextDouble();
        checkForCompletedTransaction(merchandiseQuantityArray[count], vs2);

        while (merchandiseNumberArray[count] != EXIT_VAL && merchandiseQuantityArray[count] != EXIT_VAL) {
            count++;
            System.out.println("Enter item number ID(simulate scan id) " + (count + 1) + ":");
            merchNumber = input.nextInt();
            checkForCompletedTransaction(merchNumber, vs1);
            System.out.println("Enter quantity: ");
            Qtny = input.nextDouble();
            checkForCompletedTransaction(Qtny, vs2);
            if (merchNumber == EXIT_VAL || Qtny == EXIT_VAL) {
                break;
            }

            addToMerchandiseNumberArray(merchNumber);
            addToMerchandiseQuantityArray(Qtny);

            System.out.println("-----------------");
        }

        System.out.println("\nScan Complete...\n");

    }