ads

Monday, September 3, 2007

C# Sample Code : Exercise Palindrome

Filename: Program.CS



using System;
using System.Collections.Generic;
using System.Text;

namespace Exercise_02___Palindromes
{
class Program
{
//string aword;

static void Main(string[] args)
{
bool wResult;

Console.WriteLine("Palindrome Checker");


for (int x = 0; x < 20; x++)
{
Console.Write("=");
}
Console.WriteLine();
Console.Write("Input String : ");
string aword = Console.ReadLine();

clsCheckWord CheckWord = new clsCheckWord();

CheckWord.Givenword = aword;
int ix = CheckWord.isPalindrome();

if (ix == 1)
{
Console.Write("Result : A Valid Palindrome");
}
else
{
Console.Write("Result : Not A Palindrome");
}

Console.ReadLine();
}
}
}




Class Filename : clsCheckWord.cs




using System;
using System.Collections.Generic;
using System.Text;

namespace Exercise_02___Palindromes
{
class clsCheckWord
{
public clsCheckWord(){}

public string givenword="";

public string Givenword
{
get { return givenword; }
set { givenword = value; }
}

public int isPalindrome()
{
string tmpcomp="";

for (int x = 0; x < givenword.Length; x++)
{
tmpcomp = givenword.Substring(x, 1) + tmpcomp;
}

if (tmpcomp == givenword)
{
return 1;
}
else
{
return 0;
}
}
}
}

Monday, May 7, 2007

I.T. Organization & Management



April 23, 2007

Organizational Behavior

A contemporary field focusing on behavioral perspectives on management.

- draws on psychology, sociology, eonomics, and medicing -> interdischiplinary

Important topic in organizational behavior research:

- Job satisfaction and job stress

- Motivation and leadership

- Group dynamic and organizational politcis

- Interpersonal conflict

- The structure and design of organiztions


Click here to Download Full Article


----------------------------------------

April 25, 2007

Something…

Strategic Planning Tools

- SWOT Analysis

- Poter’s Generic Strategies regarding

o Cost

o Differentation

o Focus

- Porter’s 5 forces

- Porter’s value chain model

- Strategies based on product life cycle

SWOT = Strenght Weakneses Opportunities Threats


Click here to download full article

------------------------------------

April 27, 2007

INFORMATION TECHNOLOGY

- Definition

COMPUTER TECHNOLOGY (hardware & software)

for PROCESSING & STORING INFORMATION

as well as

COMMUNICATION TECHNOOGY

For TRANSMITTING INFORMATION

COMPETING IN AN eWORLD

- NEW WAYS to COMPETE: USING CAPABILITIES

o Particularly INTERNET

o MASS CUSTOMIZATION

§ Manufacturing customized prodcuts in large quantities

§ Eg.

· Dell

o Global Reach

§ Being able to market and sell anywhere in the world

§ Eg.

· Amazon.com

· Dell

o SUPPORT

§ 24/7 on-line support anywhere in the world


Click here to download full article

----------------------------

May 2, 2007

Decision Support Systems

- A computer based system, usually interactive, designed to assist managers in is making decisions.

- Incorporates both data & model

- Intended to assis in the solution of semi- or unstructured problems

- Data often extrated from

o TPS (Transaction Processing Systems)

o Data warehose

Click here to download full article

----------------------

May 4, 2007

Initiating the Purchasing Process

- Business manager makes a formal request to begin an investigation of a possible system purchase

o Proposed application needs

o Potential benefits

- Project team is established

- Project team is established & given the responsibility of acquiring the software

o IS analysis & other IS specialists

§ Who can help assess thebenefits and risks from an IT implementation perspective

§ Who will operate and support

· The package system

· Other packaged system that will interface with this package

- Representative from the business unit

o Who can assess the organizational benefits and risks

o Who will eventually implement & use the system


Click here to download full article

------------

May 7, 2007

6. Evaluate Vendor Responses to RFP & Choose the package

- Use criteria (mapped out in step 4) as basis for evaluation

- Deterine weights

- Evaluation criteria 1 – 10 (10 = perfect)

- Multiplyevaluation by weights to get weighted evaluation

- Add all weighted evaluation to get final scores

- Use these scores to discuss strengths and weaknesses of major candidate packages

Click here to download full article

Saturday, April 28, 2007

Learning Visual C++ Win32 Programming

I will be trying to learn Visual C++ Win32 Programming Come Join me thrue my journey in learning this programming language.. i will be posting all my Daily experience on this topic hope you can learn with me... and Join me on my Journey.....

Friday, April 6, 2007

Basic array operations in VB.NET

The ability to work with arrays is important in any programming language. VB.NET offers a simple way of grouping data into the array structures similarly to other languages. In this article, I will look at array declaration and usage.

Purpose of the arrays

Arrays are generally used for storing similar types of values or objects. They allow grouping variables together and allow referring to them by using an index. Arrays have an upper bound and a lower bound, which simply refer to the starting index and the ending index of a given array structure. Additionally, the data in the array can be sorted. Simple arrays are one-dimensional; however, you can also use multi-dimensional arrays in VB.NET. You can loop through an array to determine and to modify the values stored in the array.

Declaring and initialising arrays

There are two ways of initialising the arrays: to declare and initialise them in one statement, or to declare an array and choose to initialise it later.

When declaring and initialising arrays in the same statement, you must specify the type of the array elements and the number of the elements the array will hold. In VB.NET, arrays are zero based, which means that the index of the first element is zero. The elements are numbered sequentially. You must specify the number of array elements by indicating the upper bound of the array. The upper bound is the number that specifies the index of the last element in the array. Listing A shows the declaration and initialisation of an array of integers.

Listing A

Dim arrNumbers(4) As Integer 'Declares & initialises an array of 5 integers, with indexes ranging from 0 to 4

Another way to declare and initialise arrays is to perform these operations in two separate steps. If you declare an array without specifying a number of elements on one line, you have to provide the values for each item of the array when you initialise it. The initial values are provided enclosed in the {} braces, using a comma as a separator. Listing B shows the declaration and initialisation of an array in two separate steps.

Listing B

Dim arrNumbers() As Integer 'Declares the array of integers
arrNumbers = New Integer() {0,1,2,3,4} 'Initialises the array to five members & sets their values

Once an array is declared and initialised, it's possible to change the size of an array in run time by redefining it. You can use the ReDim statement to change the number of items in an array structure. Listing C shows declaration, initialisation, and then re-sizing of an array structure.

Listing C

Dim arrNumbers(32) As Integer' Declares & Initialises an array of integers
ReDim arrNumbers(45) As Integer' Re-initialises the array

By default, the data stored in an array is lost whenever an array is re-initialised. However, you can use the ReDim statement with the Preserve keyword in order to keep the existing data in the array when it's being re-initialised. Listing D re-initialises an array structure using the Preserve statement to keep the data already stored in the array.

Listing D

Dim arrNumbers () As Integer = {0,1,2,3,4}' Declares & initialises the array
ReDim Preserve arrNumbers (25) 'Resizes the array, but retains the data in elements 0 through 4

There are two types of multidimensional arrays: rectangular or jagged. In rectangular arrays, every member of each dimension is extended into the other dimensions by the same length. In jagged arrays, individual members of one dimension can be extended into other dimensions by different lengths. The more dimensions an array has, the more complex it becomes to work with it

Google Search