Problem 1:
Instead of moving back and forth, a conical pendulum moves in a circle at constant speed as its string traces out a cone (see figure below). One such pendulum is constructed with a string of length and bob of mass . The string makes an angle with the vertical.
Minimax Alpha Beta Pruning Sample
This article is intended to explain the essence of the fundamental methods of construction and optimization of artificial intelligence for computer games (mainly antagonistic). For example, “Minimax” algorithm and it’s “alpha-beta pruning” optimizations in the Rabbits&Wolves game.
Sample Projects in C#: Consecutive Numbers in Gray Code Sequence
Consecutive Numbers in Gray Code Sequence
- The reflected binary code (RBC), also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in only one bit (binary digit). The reflected binary code was originally designed to prevent spurious output from electromechanical switches. Today, Gray codes are widely used to facilitate error correction in digital communications such as digital terrestrial television and some cable TV systems. (en.wikipedia.org, 2002)
GLSL Shader Examples: Blue Color Screen
GLSL TASK:
Create a shader which fills the screen with blue color. For the space occupied by right half of screen, introduce a vertical green bar located in the middle of it, with its width being equal to one-third of it. This should result in right half of screen being divided into three equal parts (blue-green-blue). As for the left half of screen, introduce a pair of vertical red bars, with width of each being equal to one-fourth of it, resulting in left half of screen being divided into four equal parts (blue-red-blue-red). Continue reading
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
Relative Frequency Distribution Example
Relative frequency – is how often something happens divided by all outcomes.
Example 1:
We have the frequency distribution of the chips “Pringles” at 40 different shops. 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:
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
Assignment Examples: The One about Duck Typing in C#
Induction is a process of logical reasoning, based on the transition from private to general provisions. The famous “duck test” is a prime example of such a process: If it walks like a duck and quacks like a duck, it must be a duck. 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
Android Development Sample
Hello! Today I want to show you how to create, start and stop simple service in Android OS.
Thus, the service is a certain task that runs in the background and does not use UI. The service can be started and stopped from applications and other services. Also, you can connect to the running service and interact with it. Continue reading