All posts by Editor

IT Sample: Constructing a Frequency Distribution

Task:

Construct a frequency distribution with suitable class interval size of marks obtained by 50 students of a class are given below:

22, 51, 34, 39, 68, 69, 9, 37, 16, 48, 36, 27, 55, 59, 60, 59, 74, 80, 19, 29, 31, 69, 62, 60, 28, 67, 51, 73, 17, 24, 44, 45, 51, 66, 68, 72, 74, 41, 57, 41, 67, 51, 53, 23, 58, 34, 39, 48, 36, 79

Solution:

Arrange the marks in ascending order as Continue reading

C# Programming Code Examples: Finding a Palindrome

In this guide I will show you how to create a program on Windows Forms which will help us to determine if the symbols that we input constitute a palindrome.

Let’s create a simple user interface:

finding-a-palindrome-using-c-1

Here we have a TextBox, Label, and Button. The message with the result of checking will be shown using MessageBox.

Double click the button “Check it” and go to the part of the code where we will perform the checking. Continue reading

Samples of Assignments: Drawing in Xamarin Using Ncontrol

In the process of development, sometimes there’s a need to draw some interface elements manually. The Ncontrol component was created exactly for these purposes.

The library uses the NGraphics library to perform custom drawings to make it easy to build complex controls. The project is hosted on Github and is distributed under the MIT license. NControlView can be used both to do custom drawings and to create complex custom controls.

To make a long story short, it’s a rendering visualization mechanism on top of the standard mechanisms in iOS, Android, and Windows Phone. Continue reading

Naive Bayes Spam Filter Example

Naive Bayes classifier

Naive Bayes classifier is one of the easiest classification algorithms. However, very often it works even better than the more complex algorithms. I want to share the C# code and a description of how it all works.

And so, for example, I will take the problem of determining the type of the vehicle using it’s dimensions. Of course, to determine the type, you can create a large list of vehicles. But this list, in any case will never be comprehensive. In order to solve this problem, you can “train” a model for the marked name. Continue reading

Engineering Samples: The One about Stress Analysis of Riveted Lap Joint

Problem statement: There is a lap joint with one rivet, as shown in the Figure 1 below. The diameter of the rivet is 4 mm. The material of the rivet, as well as the material of pates in joint are given in the table 1 below. Force which is applied to the plate is given in form of distributed force through the cross-sectional area of the plate. Perform the Stress Analysis of the joint in order to verify the durability of the junction.

Lap joint

Figure 1. Lap joint

Continue reading

Engineering Problem Solving

Double Pipe Heat Exchanger Using ANSYS Workbench

In order to design a Double Pipe Heat Exchanger in ANSYS 16.1 the next steps were
accomplished:

a) Creating the project:

  1. Open the ANSYS 16.1 workbench;
  2. Select Fluid Flow (Fluent) in the toolbox menu at the left area of the window and create a new project.
  3. Rename the Project on “double-pipe” as shown in the Figure 1 below.
    figure-1-project-double-pipe

    Figure 1. Project “double-pipe”

  4. Save the project

Continue reading