/// <summary> /// Verify correctness of Division /// </summary> /// <param name="value">value from user</param> /// <param name="exp">real value</param> /// <returns></returns> public static bool VerifyDivision(string value, ValueDecimal2 exp) { return(Convert.ToDecimal(value) == exp.correctanswer); }
/// <summary> /// Verify correctness of Multiplication /// </summary> /// <param name="value">value from user</param> /// <param name="exp">real value</param> /// <returns></returns> public static bool VerifyMultiplication(string value, ValueDecimal2 exp) { return(exp.correctanswer == Convert.ToDecimal(value)); }