Tuesday, 22 October 2013

Conditional Control Statment - Looping Statement - While Loop

While Loop:

General Syntax:

Initializing the variable part;
While( Condition )
{
         ..........
        ............
          While loop statements;
        .........
        .............
        Increment (or) Decrements operator;
}

Explanation:
If the condition is true, then the statements within the while loop will be executed. After executing the statements within the while loop if the given condition is true, then the increment of decrements process will be taken place for doing the same process again in our developed application program to provide the appropriate output as per our client's requirements. Before doing this we have to initialize the process as per our requirement, If the process will be increased for some more points, then we have to start the process by assigning the initial value as zero. If the process will be decreased from more points, then we have to start the process by assigning the initial value as the maximum of the values it should be required.

After increased or decreased the variable value then the condition once again will be checked whether the given condition is satisfied and providing the output as true. If the condition is satisfied again and return true, then the statements within the while loop will be executed again. And then the increasing or decreasing process will be taken place. And then the condition will be checked to work out the process within the while loop if the condition is satisfied with the new increased value of the assigned variable.

The above process will be continued till the condition will be satisfied with the new increased or decreased value of the assigned variable. When the condition will not be satisfied with the new increased or decreased value of the assigned variable, then the execution of the statements within the while loop will be stopped and the computer process will be thrown out of the while loop.

Thus the while loop can be used to deliver the output as per our clients requirement to our management and assigned to our team manager and then that has been assigned to our team lead that has been assigned to us by our team lead to perform the task and the completed tasks will be sent to Testing team for Quality checking process.

At last the project will be released by our company and lump amount will be collected by our company from our client. Our company will give us just 0.5% of the amount as our salary. I hope this will help u......

Tuesday, 1 October 2013

Conditional Control Statement : Simple If statement

Simple If statement Syntax:

              if ( relational expression )
             {
                   ....................
                  .......................
                       if block statements;
                  ........................
              }

Ex:
             if ( a > 0 )
             {
                  Console.WriteLine("a is a Positive number...........");
             }

Explanation:
             If the given condition return true means, then the statements within the if block will be executed. Otherwise nothing will be happened in our program that has been written for our developed application by us that has been assigned for us to develop by our team lead which has been assigned to him by our team manager as it was assigned by our management to our team manager that has been required by our client as they specified in our conversation with our client while we were talking with them to sign off for starting the project development for them.

Convert Integer into String

How to convert Integer into String:

         String strValue = Convert.ToString(intValue);

Convert String to Integer

How to convert String into Integer in C#.Net:
      int intValue = Convert.ToInt32(strValue.ToString());