Friday, 3 January 2014

Variables Declarations

Declaring the variable:

Syntax: (Access Specifier)(Data Type)Variable name

Ex: public int a;

Access specifier is used to specify the accessibility of the data member of the class which is defined in our application by the developer to solve the problems according to the assigned tasks by their respective leads that have been assigned him by team manager and by the management which is the requirement of the client to finish their respective project.

Data type is defined as type of the values to be stored in the respective declared variable name. It may be either integer, float, double, character, String, Boolean and etc., It will be required to define the function to fulfill the application flow that is required by our client that has been said by our lead so that has been told by their team managers. The team managers has to be intimated regarding the requirements by the management as Clients requirements.

Variable name is the location to store the values. These values will be used in the future developments of the application. Variables may be either Global variable or local variable. Local variables can be used within the particular function only. It cannot be referred by outside of the function where it is required to specify. Global variables are used to use anywhere else in the whole application. They can be referred anywhere in the application by the developer for doing something. Global Variables are the best practice to handle the functionalists of the process.  

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());