C/C++

C/ CPP programms

digital different Analizer(DDA)

SOURCE CODE : //programed by Paras Wadher MCA Nagpur university /*A Program to implement digital different Analizer(DDA)*/ #include<iostream.h> #include<conio.h> #include<dos.h> #include<stdio.h> #include<graphics.h> #include<stdlib.h> class LINE { public:void getdata(); void DrawLine(); void axis(); float x1,y1,x2,y2; }; void LINE::getdata() { clrscr(); cout<<endl<<“Enter the coordinates of startimg point of line”; cin>>x1>>y1; cout<<endl<<“Enter rhe coordinates of ending point of …

digital different Analizer(DDA) Read More »

PROGRAM For MINIMIN METHOD.

SOURCE CODE : //programed by Paras Wadher MCA Nagpur university //PROGRAM TO OBTAIN SOLUTION OF PROBLEM USING MINIMIN METHOD. #include<iostream.h> #include<conio.h> #include<math.h> #include<process.h> class minimin { float a[30][30],r,min[10],c,m,k; public: void getdata(void); void cal(void); }; void minimin::getdata() { cout<<“\n Enter the no of alternative “; cin>>r; cout<<“\n Enter the no of events “; cin>>c; cout<<“\n Enter …

PROGRAM For MINIMIN METHOD. Read More »

PROGRAM for MAXIMAX CRITERIA

SOURCE CODE : //programed by Paras Wadher MCA Nagpur university //PROGRAM TO FIND THE VALUE BY USING MAXMAX CRITERIA #include<iostream.h> #include<conio.h> class max { int c[10][10],max[10]; int i,j,m,n,maxval; public: void getdata(); void cal(); }; void max:: getdata() { cout<<“\n Enter the row size:”; cin>>m; cout<<“\n Enter the column size:”; cin>>n; cout<<“\n Enter the value of …

PROGRAM for MAXIMAX CRITERIA Read More »

PROGRAM FOR MAXIMIN CRITERIA

SOURCE CODE : //programed by Paras Wadher MCA Nagpur university //Program for Maximin criteria #include<iostream.h> #include<conio.h> #include<iomanip.h> class maximin { private : int A[100][100],i,j,m,n,r,r1; int small,s[100],large; public : void getdata(void); void disp(void); }; void maximin :: getdata(void) { cout<<“\n\n\t Enter the size of Matrix… “; cout<<“\n\n\t Number of row’s : “; cin>>m; cout<<“\n\n\t Number of …

PROGRAM FOR MAXIMIN CRITERIA Read More »

least cost /matrix minima method

SOURCE CODE : //programed by Paras Wadher MCA Nagpur university //program for least cost or matrix minima method #include<iostream.h> #include<conio.h> #include<iomanip.h> class LeastCost { private: int B[100],C[100],i,j,m,n,sum1,sum2,S,p,q,s,t,min,min1; long int A[100][100]; public: void getdata(void); void display(void); void calculate(void); }; void LeastCost::getdata(void) { cout<<“\n\n Enter the size of cost matrix… “; cout<<“\n\n Number of row’s : “; …

least cost /matrix minima method Read More »

program for Laplace criteria

SOURCE CODE : //programed by Paras Wadher MCA Nagpur university //program for Laplace criteria #include<iostream.h> #include<conio.h> #include<iomanip.h> class laplace { private : int A[100][100],i,j,m,n,sum,r,r1; float prob,t[100],s[100],small,large; public : void getdata(void); void disp(void); }; void laplace :: getdata(void) { cout<<“\n\n\t Enter the size of Matrix… “; cout<<“\n\n\t Number of row’s : “; cin>>m; cout<<“\n\n\t Number of …

program for Laplace criteria Read More »