Example #1
0
        public string GetNextAssignment()
        {
            string assignment;

            if (eenTafel)
            {
                multiplier = tableOf;
            }
            else
            {
                multiplier = randomGenerator.GetRandomNumberBetween(1, tableOf);
            }

            int randomValue = multiplicand;

            while (multiplicand == randomValue)
            {
                randomValue = randomGenerator.GetRandomNumberBetween(1, 10);
            }

            multiplicand = randomValue;
            assignment   = multiplicand.ToString() + " x " + multiplier.ToString();

            return(assignment);
        }
Example #2
0
        public string GetNextAssignment()
        {
            string assignment;

            if (eenTafel)
            {
                denominator = tableOf;
            }
            else
            {
                denominator = randomGenerator.GetRandomNumberBetween(1, tableOf);
            }

            int randomValue = quotient;

            while ((quotient * denominator) == (randomValue * denominator))
            {
                randomValue = randomGenerator.GetRandomNumberBetween(1, 10);
            }

            quotient   = randomValue;
            assignment = (quotient * denominator).ToString() + " : " + denominator.ToString();

            return(assignment);
        }
Example #3
0
        public string GetNextAssignment()
        {
            string assignment = "";

            operand2   = randomGenerator.GetRandomNumberBetween(counterMin, counterMax);
            operand1   = randomGenerator.GetRandomNumberBetween(counterMin, upperLimit - operand2);
            assignment = operand1.ToString() + " + " + operand2.ToString();

            return(assignment);
        }
Example #4
0
        public string GetNextAssignment()
        {
            string assignment = "";

            operand2 = randomGenerator.GetRandomNumberBetween(counterMin, counterMax);
            operand1 = randomGenerator.GetRandomNumberBetween(counterMin, upperLimit);
            if (operand2 > operand1)
            {
                int x = operand1;
                operand1 = operand2;
                operand2 = x;
            }
            assignment = operand1.ToString() + " - " + operand2.ToString();

            return(assignment);
        }