Documente Academic
Documente Profesional
Documente Cultură
Description
Active Vibration Control
This application demonstrates the use of the Standard/Custom Vibration Control
button control of Microsoft Windows. It does this Products. Request A Quote Online!
while calculating the factorial, the permutation, www.KineticSystems.com
and the combinatorial.
FlowChart.NET control
Diagramming and charting component
Windows Controls: for Windows Forms applications.
www.mindfusion.eu
z Label
Algebra for grades 1-6
z Button Practice variables, expressions,
z Text Box equations, exponents, much more!
www.ixl.com/math
z Tab Control
using System;
namespace Algebra2
{
public class Algebra
{
public static long Factorial(long x)
{
if (x <= 1)
return 1;
else
return x * Factorial(x - 1);
}
http://www.functionx.com/vcsharp/applications/algebra.htm 12/30/2009
Example Application: Algebra Page 2 of 6
if (r == 0)
return 0;
if (n == 0)
return 0;
if ((r >= 0) && (r <= n))
return Factorial(n) / Factorial(n - r);
else
return 0;
}
http://www.functionx.com/vcsharp/applications/algebra.htm 12/30/2009
Example Application: Algebra Page 3 of 6
11. In the combo box on top of the Properties window, select tabFactorial
12. From the Common Controls section of the Toolbox, click Button and click on the right side
of the top text box
13. Access each tab page and add a button to it
14. Add a button to the form and under the tab control
15. Complete the design of the form as follows:
http://www.functionx.com/vcsharp/applications/algebra.htm 12/30/2009
Example Application: Algebra Page 4 of 6
DSkinLite GUI
Library
Control Text Name make fancy gui using
xml, easy to use, c++
Button Calculate btnCalcPermutation
library, for
mfc,wtl,win32
www.uieasy.com
ASP.NET
Ecommerce & Cart
shopping cart,
shipping, currency
credit card processing
for ASP.NET
www.dotnetecommerce.com
Fast Reporting
components
for Delphi 7, 2007,
2009 Royalty-free end
-user report design
www.fast-report.com
Control Text Name
Button Calculate btnCalcCombination
16. Access the Factorial tab page and double-click its Calculate button
17. Implement the event as follows:
try
{
number = long.Parse(txtFactNumber.Text);
result = Algebra.Factorial(number);
txtFactorial.Text = result.ToString();
}
http://www.functionx.com/vcsharp/applications/algebra.htm 12/30/2009
Example Application: Algebra Page 5 of 6
catch (FormatException)
{
MessageBox.Show("Invalid Number");
}
}
try
{
n = long.Parse(txtPermutationN.Text);
}
catch (FormatException)
{
MessageBox.Show("Invalid Number");
}
try
{
r = long.Parse(txtPermutationR.Text);
result = Algebra.Permutation(n, r);
txtPermutation.Text = result.ToString();
}
catch (FormatException)
{
MessageBox.Show("Invalid Number");
}
}
try
{
n = long.Parse(txtCombinationN.Text);
}
catch (FormatException)
{
MessageBox.Show("Invalid Number");
}
try
{
r = long.Parse(txtCombinationR.Text);
result = Algebra.Combinatorial(n, r);
txtCombination.Text = result.ToString();
}
catch (FormatException)
{
MessageBox.Show("Invalid Number");
}
}
http://www.functionx.com/vcsharp/applications/algebra.htm 12/30/2009
Example Application: Algebra Page 6 of 6
Close();
}
http://www.functionx.com/vcsharp/applications/algebra.htm 12/30/2009