SPOS Assignment 5: Mohit Gandhi TECOC316
SPOS Assignment 5: Mohit Gandhi TECOC316
Assignment Title: Create DLL file for any mathematical operation and write an application
program to test it. download below file for instructions.
Output:
Source code for calculator.cs
namespace Calculator
{
public class Functions
{
public double add(double a,double b)
{
return a + b;
}
public double sub(double a, double b)
{
return a - b;
}
public double mul(double a, double b)
{
return a * b;
}
public double div(double a, double b)
{
return a / b;
}
}
}
Catch
MessageBox.Show("Enter correct info")
End Try
End Sub
End Class