06 Task Performance 1 Event Driven
06 Task Performance 1 Event Driven
Assemblies
# INSTRUCTIONS OUTPUT
1. Create a program named
BasicCalculator. The
program should only
have one (1) Windows
form named
FrmBasicCalculator. See
Figure 1 for the sample
design of the form.
3. Rename Class1 to
BasicComputation. After
that, create four (4) static
methods that return the
results of Addition,
Subtraction,
Multiplication, and
Division, wherein the data
type is a float data type.
4. Build your private assembly.
5. Go to your
FrmBasicCalculator and
reference the created
private assembly.
namespace BasicCalculator
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//BasicComputation.cs
namespace CalculatorPrivateAssembly
{
public class BasicComputation
{
public float Addition(float num1, float num2)
{
float result = num1 + num2;
return result;
}
public float Subtraction(float num1, float num2)
{
float result = num1 - num2;
return result;
}
public float Multiplication(float num1, float num2)
{
float result = num1 * num2;
return result;
}
public float Division(float num1, float num2)
{
float result = num1 / num2;
return result;
}
}
}