Friday, 10 July 2015

Strengths


Friends every company requires good resume content. So, here is the list of strengths from which you can choose your own.


Goal Oriented
Relationship Oriented
Research Oriented
Planning and Organizing
Communication Skills
Strong work ethic
Flexible and Adaptable
Problem Solving
Decision Making
Analyzing things
Team work
Self reliant
Disciplined
Persistent
Energetic
Initiatives
Hard working
Quick learner
Optimistic
Self motivated
Punctual
Honest
Creative thinking
Positive thinking
Accept failures

C language basics 3

//Find the errors

1. #include<stdio.h>
#include<conio.h>
int main()
{
int i;
printf("enter the value of i\n");
scanf("%d",&i);
if(i=5)
printf("you entered  5\n");
else
printf("you entered something other than 5\n");
getch();
return 0;
}


output: enter the value of i
  7
you entered  5


2.//largest of three numbers
#include<stdio.h>
#include<conio.h>
int main()
{
int big, a,b,c;
printf("enter the values of a b c\n");
scanf("%d %d %d",&a, &b, &c);
big=(a>b?(a>c?a:c):(b>c?b:c));
printf("largest of three numbers is %d",big);
getch();
return 0;
}

output: enter the values of a b c
1 18 24
largest of three numbers is 24



3.// Interesting program

#include<stdio.h>
#include<conio.h>
int main()
{
int x=3;
float y=3.0;
if(x==y)
   printf("x and y are equal");
   else
      printf("x and y are not equal");
getch();
return 0;
}

output:
x and y are equal



4.//program

#include<stdio.h>
#include<conio.h>
int main()
{
int x=3, y,z;
y=x=10;
z=x<10;
printf("x=%d y=%d z=%d \n",x,y,z);
getch();
return 0;
}


output:

x=10 y=10 z=0



5.//very interesting program

#include<stdio.h>
#include<conio.h>
int main()
{
int i=4, j=-1, k=0,w,x,y,z;
w=i||j||k;
x=i&&j&&k;
y=i||j&&k;
z=i&&j||k;
printf("w=%d\n x=%d\n y=%d\n z=%d\n",w,x,y,z);
getch();
return 0;
}


output:
w=1
x=0
y=1
z=1



6.//not operator

#include<stdio.h>
#include<conio.h>
int main()
{
int i=-3, j=3;
if(!i+!j*1)
printf("expression results 1");
else
printf("expression results 0");
getch();
return 0;
}


output:
expression results 0



//Difference between && and &

7.//program on if condition

#include<stdio.h>
#include<conio.h>
int main()
{
int i=10, j=20;
if((i=5)&&(j=10))
printf("hello");
getch();
return 0;
}


output:
hello



8.//&
#include<stdio.h>
#include<conio.h>
int main()
{
int i=10, j=20;
if((i=1)&(j=1))
printf("hello");
getch();
return 0;
}

output:
hello


Explanation:

In the first program, first expression 1 be executed and then the result of this expression decides the execution of the other statement. If it is false then the AND will be false so it makes no sense to execute the other statement. The expression 2 statement is executed if and only if expression 1 returns true on execution. It is also known as the short circuit operator because it shorts the circuit (statement) on the basis of the first expression’s result. 


Now in the case of & things are different. The compiler will execute both statements and then the result will be analyzed. It’s an inefficient way of doing things because it makes no sense to execute the other statement if one is false because the result of AND is effective only for AND results evaluated to “true” and it’s possible when both statements are true.


//Difference between || and |
9. 
 #include<stdio.h>
#include<conio.h>
int main()
{
int i=10, j=20;
if((i=0)||(j=1))
printf("hello");
getch();
return 0;
}


output:
hello


10.
 #include<stdio.h>
#include<conio.h>
int main()
{
int i=10, j=20;
if((i=0)|(j=1))
printf("hello");
getch();
return 0;
}


output:
hello


Explanation:
 It’s the same as above, in the case of “||” only one statement is executed and if it returns “true” then the other statement will not be executed. But if the first is false then the other will be checked for the value “true”. The reason for this is the way the “or” operator works. The “Or” operator depends on only one true, in other words if any of the expressions are true then the result will be true.








Thursday, 9 July 2015

Resume Writing 1

NAME
H.NO:   1-2-45/c                                                                           Mobile: 123-456-7890
xxx Bazar                                                                                      Email:raj@gmail.com
District-508001                       

Career objective:
                To work in a learning and challenging environment, utilizing my skill and knowledge to the best of my abilities and contribute positively to my personal growth as well as the growth of the organization.
Educational Qualifications:
Course
Institute/School
Board/University
Percentage
Bachelor of Engineering 


Osmania University

Intermediate

Board of Intermediate Education

Matriculation

Board of Secondary School Education


Project work:
Ø   
Ø  .
Achievements:
·        Secured gold medal in…..
·        Won first/ second prize in paper presentation on the topic……
·        Stood first/second/third in my class/college in the year 2014.
     Achievements in sports.
Volunteer activities:
·        National level (NSS, NCC)
·        Organised the event….. in …..
·        ECO CLUB
·        Ethics cell


Workshops attended:
Ø  

Technical skills:
·         Software                                   :  Solid works, NX, Proteus, Multisim.
·         Programming languages              : C & C++.

Strengths:

ü  Planning and Organizing
ü  Flexible and Adaptable
ü  Research oriented

Personal information:
Father’s name                  :
Mother’s name                 :
Date of Birth                    :
Languages known            : English, Hindi, Telugu.
Nationality                       : Indian.

Declaration:

 I hereby affirm that the information furnished in this form is true to the best of my knowledge.






Date   :

Place: Hyderabad                                                                                                      Raju.

Friday, 26 June 2015

C language basic programs 2

1. //program on fundamental data types
#include<stdio.h>
#include<conio.h>
int main()
{
int a;
float b;
char c;
double d;
a=5;
b=10.2;
c='M';
d=9.325;
printf("%d %f %c %lf",a,b,c,d);
getch();
return 0;
}


output: 5 10.200000 M 9.325000



2.    //to calculate area of rectangle
#include<stdio.h>
#include<conio.h>
int main()
{
int l, b, area, perimeter;
printf("enter values of length and breadth\n");
scanf("%d %d",&l, &b);
area=l*b;
perimeter=2*(l+b);
printf("area of rectangle is %d\n",area);
printf("perimeter of rectangle is %d",perimeter);
getch();
return 0;

}



output: enter values of length and breadth
2 4
area of rectangle is 8
perimeter of rectangle is 12




3.//to calculate area of rectangle
#include<stdio.h>
#include<conio.h>
int main()
{
float r, area, perimeter;
printf("enter the value of radius of circle\n");
scanf("%f",&r);
area=3.14*r*r;
perimeter=(2*3.14*r);
printf("area of circle is %f\n",area);
printf("perimeter of circle is %f\n",perimeter);
getch();
return 0;

}


output: enter the value of radius of circle
              5
area of circle is 78.500000
perimeter of circle is 31.400000




4.//to calculate area of triangle
#include<stdio.h>
#include<conio.h>
#include<math.h>
int main()
{
int a,b,c,p;
float s,area;
printf("enter the values of a,b,c\n");
scanf("%d%d%d",&a,&b,&c);
p=a+b+c;
s=(a+b+c)/(2.0);
area=sqrt(s*(s-a)*(s-b)*(s-c));
printf("area of triangle is %f\n",area);
printf("perimeter of triangle is %d\n",p);
getch();
return 0;

}


output: enter the values of a,b,c
            2 3 4
area of triangle is 2.904737
perimeter of triangle is 9





5.//sawaping of two numbers
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,temp;
printf("enter two numbers\n");
scanf("%d %d",&a,&b);
printf("before swaping the values of a and b are %d %d\n",a,b);
temp=a;
a=b;
b=temp;
printf("after swaping the values of a and b are %d %d\n",a,b);
getch();
return 0;

}

output: enter two numbers
              3 5
before swaping the values of a and b are 3 5
after swaping the values of a and b are 5 3



Thursday, 25 June 2015

C language basics 1

History:

 C language was developed at AT & T's Bell laboratories of USA in 1972. It is designed and written by Dennis Ritchie.

Features of C language:
1.Middle level language
2.Structural
3.Easy to understand
4.Portability i.e., programs written in one system can be copied into another system and can be executed easily
4.More efficient
5.Compile language
6.Windows, Linux and Unix are written in C because of its high performance

Compiler: basically the system understands only machine level language i.e., written in 1's and 0's.
Here compiler does the job of converting the source code to machine level language


Constant:
1. A constant is an entity that doesn't change
2.Alphabets, numbers and special symbols can be used to form constants.

                                                       constants    -  Integer constants -     5, 12, 28, 264, 768 etc

                                                                               Real constants    -      5.20, 6.25, 235.12, 5.21 etc

                                                                              Character constants- 'a', 'h', '9', '=' etc

Variable:
   A variable is an entity that does change.

Ex:        #include<stdio.h>
              #include<conio.h>
              int main()
 {
              int x=10;                  
              printf("the value of x is %d\n",x);
               x=x+1;
              printf("the value of x is %d\n",x);
 getch();
 return 0;
}

output: the value of x is 10
             the value of x is 20

Here x is a variable and 10, 20 are integer constants.

Variable types:
 1. Integer                                  - keyword is int         ex: int a, int x
 2.Real or floating point type    - keyword is float      ex: float area, float average, etc
 3.Character                               - keyword is char      ex: char a, char i, etc

Keywords:
     These are the words whose meaning has already been explained to the c compiler.
By using keywords we can construct the meaningfull statements.

           Ex: break, int, float, char, if, for.....etc
Note: keywords cannot be used as variable names.

Basic programs:

// to print hello

#include<stdio.h>
#include<conio.h>
int main()
{
printf("hello");
getch();
return 0;
}


Description:
#  - Pre processor directive:  it is a program that processes our source code before it is passed to the compiler

In the C Programming Language, the Standard Library Functions are divided into several header files.
The following is a list of functions found within the <stdio.h> header file:

FORMATTED INPUT/OUTPUT FUNCTIONS


fprintf                               Formatted File Write      
fscanf                               Formatted File Read
printf                                Formatted Write
scanf                         Formatted read
sprintf                        Formatted string write
sscanf                       Formatted string read
vfprintf                       Formatted File Write Using Variable Argument List
vprintf                        Formatted Write Using Variable Argument List
vsprintf                      Formatted String Write Using Variable Argument List  


CLOSE FILE
FLUSH FILE BUFFER
OPEN FILE
REOPEN FILE
REMOVE FILE
RENAME FILE
SET BUFFER (OBSOLETE)
SET BUFFER
CREATE TEMPORARY FILE
GENERATE TEMPORARY FILE NAME

CHARACTER INPUT/OUTPUT FUNCTIONS
Read Character from File
Read String from File
Write Character to File
Write String to File
Read Characters from File
Read Character
Read String
Write Character to File
Write Character
Write String
Unread Character



BLOCK INPUT/OUTPUT FUNCTIONS

                         Read Block from File
                         Write Block to File
FILE POSITIONING FUNCTIONS
 Get File Position
fseek                         
File Seek
Set File Position
Determine File Position
Rewind File













conio.h library functions


      All C inbuilt functions which are declared in conio.h header file are given below. 

List of inbuilt C functions in conio.h file:

S.noFunctionDescription
1clrscr()This function is used to clear the output screen.
2getch()It reads character from keyboard
3getche()It reads character from keyboard and echoes to o/p screen
4textcolor()This function is used to change the text color
5textbackground()This function is used to change text background
       

     
main()  
{
     /*main() is a function . A function is nothing but a set of statements.In a C program there can be multiple functions.All statements that belong to main() are enclosed within a pair of braces {} as shown here.*/




}



printf(" enter x value");    :  standard function used to print something on to the screen.
scanf("%d",&x);                :reads values or data from the user through input devices.
getch();                                 :It reads character from keyboard.


void main()   : does not expect any output value at the end of the program

int main()      :expects some integer value at the end of the program


//program to calculate simple interest


#include<stdio.h>

#include<conio.h>
int main()
{
int p,n;
float r,si;
p=1000;
n=3;
r=8.5;
//formula for simple interest 
si=(p*n*r)/100;
printf("%f\n",si);
return 0;
}

output: 255.000000





//To calculate simple interest for any values of p, n and r


#include<stdio.h>

#include<conio.h>
int main()
{
int p,n;
float r,si;
printf("enter values of p, n,r");
scanf("%d %d %f",&p,&n,&r);
si=(p*n*r)/100;
printf("%f",si);
return 0;
}


output: enter values of p, n,r 4 5 2

               0.400000