project midterm report

Upload: anand-classes

Post on 04-Apr-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/29/2019 Project Midterm Report

    1/16

    Complete Package of

    Numerical Methods and Statistical Techniques

    In

    Engineering & Sciences

    Neeraj Anand (AMIETE-CS)

    Membership No. : 193651

  • 7/29/2019 Project Midterm Report

    2/16

    2 IETE PROJECT MIDTERM REPORT

  • 7/29/2019 Project Midterm Report

    3/16

  • 7/29/2019 Project Midterm Report

    4/16

    4 IETE PROJECT MIDTERM REPORT

  • 7/29/2019 Project Midterm Report

    5/16

    Neeraj Anand, Membership No. 193651 (AMIETE-CS) 5

  • 7/29/2019 Project Midterm Report

    6/16

    6 IETE PROJECT MIDTERM REPORT

  • 7/29/2019 Project Midterm Report

    7/16

    Neeraj Anand, Membership No. 193651 (AMIETE-CS) 7

  • 7/29/2019 Project Midterm Report

    8/16

    8 IETE PROJECT MIDTERM REPORT

  • 7/29/2019 Project Midterm Report

    9/16

    Neeraj Anand, Membership No. 193651 (AMIETE-CS) 9

    Phase -1

    Arithmetic Mean

  • 7/29/2019 Project Midterm Report

    10/16

    10 IETE PROJECT MIDTERM REPORT

    ************************************************************************************************Algorithm 1.1 : To calculate arithmetic mean of n variables

    ************************************************************************************************Beginint n,yreal sum, x, meanWrite ("Enter the number of variables")Read (n)

    set sum = 0Write ("Enter the values of variables")for y = 1 to n by 1 doBeginRead (x)set sum = sum + xEnd formean = (sum/n)Write ("Arithmetic Mean = ", mean);End

    ************************************************************************************************Program 1.1 : Computer Program developed in Turbo - C++ to calculatethe Arithmetic Mean of Individual Series

    ************************************************************************************************#includevoid main() {int n,y; float sum,x,mean;cout y;cout

  • 7/29/2019 Project Midterm Report

    11/16

    Neeraj Anand, Membership No. 193651 (AMIETE-CS) 11

    sum=0;cout

  • 7/29/2019 Project Midterm Report

    12/16

    12 IETE PROJECT MIDTERM REPORT

    cin>> y;cout

  • 7/29/2019 Project Midterm Report

    13/16

    Neeraj Anand, Membership No. 193651 (AMIETE-CS) 13

    Program 1.3 : Computer Program developed in Turbo - C++ to calculatethe Arithmetic Mean of Continous Series

    ************************************************************************************************#include

    #define max 100void main() {int n,y;float mean,sum,F,f[max],x[max],m[max],z[max];couty;cout> z[n];m[n]=(x[n]+z[n])/2; }

    cout

  • 7/29/2019 Project Midterm Report

    14/16

    14 IETE PROJECT MIDTERM REPORT

    for n = 2 to y by 1 doBeginf1[n]=(f[n]-f[n-1])End forsum=m[1]*f[1]

    F=f[1]for n = 2 to y by 1 doBeginsum=sum+(m[n]*f1[n])F=F+f1[n]End formean=(sum/F)Write ("Arithmetic Mean=",mean)End

    ************************************************************************************************Program 1.4 : Computer Program developed in Turbo - C++ to calculatethe Arithmetic Mean of Continous Series with cumulative frequencyvalues

    ************************************************************************************************#includevoid main() {int n,y;float mean,sum,F,f[20],x[20],m[20],z[20],f1[20];

    couty;cout> z[n];m[n]=(x[n]+z[n])/2; }cout

  • 7/29/2019 Project Midterm Report

    15/16

    Neeraj Anand, Membership No. 193651 (AMIETE-CS) 15

    ************************************************************************************************define max 100Beginint n,y

    real x[max],m[max],commean,NWrite ("Enter the number of different series")Read (y)Write ("Enter the observations in different series)Set N=0for n = 1 to y by 1 doBeginRead (x[n])N=N+x[n]End for

    printf("Enter the means of different series)for n = 1 to y by 1 doBeginRead (m[n])End forSet commean=0for n = 1 to y by 1 doBegincommean=commean + (x[n]*m[n])/NEnd forWrite ("Combined Mean =",commean)

    End

    ************************************************************************************************Program 1.5 : Computer Program developed in Turbo - C++ to calculateCombined Arithmetic Mean of different series

    ************************************************************************************************#include#define max 100

    void main() {int n,y; float x[max],m[max],commean,N;cout y;cout

  • 7/29/2019 Project Midterm Report

    16/16

    16 IETE PROJECT MIDTERM REPORT

    for(n=1; n