[go: up one dir, main page]

100% found this document useful (1 vote)
884 views2 pages

06 Task Performance 1

This document provides instructions for creating a basic calculator program using a private assembly in C#. The objectives are to determine the purpose of assemblies and create and use assemblies. Students are instructed to create a Windows form calculator program, then make a separate private assembly project containing static methods for basic math operations. The main program then references and calls the private assembly methods to display calculation results.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
884 views2 pages

06 Task Performance 1

This document provides instructions for creating a basic calculator program using a private assembly in C#. The objectives are to determine the purpose of assemblies and create and use assemblies. Students are instructed to create a Windows form calculator program, then make a separate private assembly project containing static methods for basic math operations. The main program then references and calls the private assembly methods to display calculation results.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

IT1811

Task Performance
Private Assemblies
Objectives:

At the end of the exercise, the students should be able to:

 Determine the purpose of assemblies; and


 Create and use assemblies.

Software Requirement:

 Visual Studio Community 2015 or higher

Instructions:

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.

Figure 1. FrmBasicCalculator
2. Navigate on the Solution Explorer and create another project file for a private assembly
named CalculatorPrivateAssembly.
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.
6. Import the private assembly in the class of FrmBasicCalculator and call all the methods to display
the expected output.

06 Task Performance 1 *Property of STI


Page 1 of 2
IT1811

7. Your program should be able to add, subtract, multiply, and divide. See Table 1 for sample output.
Addition Subtraction

Multiplication Division

Table 1. Private Assembly Program Output

06 Task Performance 1 *Property of STI


Page 2 of 2

You might also like