Monday 24 July 2017

Program for passing structures to functions through call by value and call by reference.

PROGRAM
Program for passing structures to functions through call by value and call by reference.

    #include<iostream.h>
    #include<conio.h>
    #include<stdio.h>

Write a program to determine al Pythagorean triplets in the range 10 to 100. (A Pythagorean triplets is a set of three integers i, j, k such that i2+j2=k2)

PROGRAM
Write a program to determine al Pythagorean triplets in the range 10 to 100. (A Pythagorean triplets is a set of three integers i, j, k such that i2+j2=k2)

     #include <iostream.h>
     #include <conio.h>
        void main()

Program to find whether two strings contain equal number of characters.

PROGRAM
Program to find whether two strings contain equal number of characters.

    #include<iostream.h>
    #include<string.h>
    #include<conio.h>
      int main()

write a program that can sort a list of names and telephone number alphabetically.

PROGRAM
write a program that can sort a list of names and telephone number alphabetically.

    #include<iostream.h>
    #include<conio.h>
    #include<string.h>
      const int size=10;

Program to illustrate working of call-by-reference method of a function invoking.

PROGRAM
Program to illustrate working of call-by-reference method of a function invoking.

    #include<iostream.h>
    #include<conio.h>
    #include<stdlib.h>
      int main()

Program to input characters and change theie case.

PROGRAM
Program to input characters and change theie case.

      #include<iostream.h>
      #include<conio.h>
      #include<stdio.h>
       int main()

Program to display a menu regarding rectangle opertion and perform according to user's response.Program to display a menu regarding rectangle opertion and perform according to user's response.

PROGRAM
Program to display a menu regarding rectangle opertion and perform according to user's response.


     #include<iostream.h>
     #include<stdio.h>
     #include<conio.h>
     #include<math.h>
     #include<stdlib.h>
            int main()

Program to count number of characters entered.

PROGRAM
Program to count number of characters entered.

      #include<iostream.h>
      #include<conio.h>
          int main()

Program to check if a string is palindrome or not.

PROGRAM
Program to check if a string is palindrome or not.

     #include<iostream.h>
     #include<conio.h>
     #include<stdlib.h>
        int main()

Programs to read sales of 5 salesman in 12 months and to print total sales madeby each salesman

PROGRAM
Programs to read sales of 5 salesman in 12 months and to print total sales madeby each salesman

     #include<iostream.h>
     #include<conio.h>
     #include<stdlib.h>
         int main()

Program to create the equivalent of a four-function calculator.The program requires the user to enter two numbers and an operator.It then carries out the specified arithmetic operation:addition,subtraction,multiplication or division of two numbers.Finally,it displays the result.

PROGRAM
Program to create the equivalent of a four-function calculator.The program requires the user to enter two numbers and an operator.It then carries out the specified arithmetic operation:addition,subtraction,multiplication or division of two numbers.Finally,it displays the result.

#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
        int main()

write a program to find the numbers when their sum (S) and product (P) is known.

PROGRAM
write a program to find the numbers when their sum (S) and product (P) is known.

#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#include<math.h>
     int main()

write a program to read coordinates of two points and calculates the distance between them as per following formula: d=sqrt(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)

PROGRAM
write a program to read coordinates of two points and calculates the distance between them as per following formula:
 d=sqrt(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)

#include<iostream.h>
#include<stdlib.h>
#include<math.h>
    int main()