Skip to main content

Posts

Auto-correlation program

/*program for autocorrelation */ #include<stdio.h> #include<conio.h> #include<math.h> int main() { int i,m,a,c,x[30]={27},count=0,M,j,k,n; double r[30],z,R[30],sum=0.0,R0,z0,R1; double sq,zA=1.96; clrscr(); printf("Enter the values of a,c,m:\n"); scanf("%d%d%d\n",&a,&c,&m); for(i=1;i<=30;i++) { x[i]=(a*x[i-1]+c)%m; r[i]=(float)x[i]/m; count++; printf("\tRand No.::%f\n",r[i]);   } scanf("%d%d%d",&j,&n,&M); if((j+(M+1)*n)<= r)     { for(k=0;k<=M;k++)    {      R[k]=r[i+(k*m)]* r[i+(k+1)*m];      sum=sum+R[k];    }    R1=sum/(M+1)-0.25;    sq=sqrt((13*M)+7);    R0=sq/(12*(M+1));    z0=R1/R0;    printf("%f",z0); }   if(z0>=-zA && z0<=zA)  printf("\n ACCEPTED");  else  printf("\n REJECTED");   getch(); return 0;  }

Inverse Random Variable program

#include<stdio.h> #include<conio.h> #include<math.h> float triangular(float a,float b,float R) {  if(a>b)      return (0.0);  else      return(a+(b-a)*R);   } float exponential(float mean,float R) {   if(R>1)     return (0.0);   else  return (-1/mean*logl(1-R)); } float weibull(float alpha,float beta,float R) {   if(R>1)     return (0.0);   else  return (alpha*(pow(logl(1/(1-R)),1/beta)));  } void main() {  float x[10],mean,a,b,r[10]; int i,n,ch; char c; clrscr(); printf("How many Random Nos. you want to enter:"); scanf("%d",&n); while(1) { printf("\n\t 1. Exponential \n\t 2. Triangular\n\t 3. Weibull\n\t"); printf("\n\t Enter Your Choice "); scanf("%d",&ch); for(i=0;i<n;i++) r[i]=(float)(rand()%1000)/1000; switch(ch) { case 1: printf("\n\t Enter value mean:"); scanf("%f",&mean);

Acception rejection using poisson

/*acception rejection using poisson*/ #include<stdio.h> #include<conio.h> #include<math.h> #include<stdlib.h> main() {       float p[30],r[30],random[30],a;       int i,j,k,n;       int count =0;       int flag=0;          printf("Enter the number of random numbers  \t e.g 5\n");       scanf("%d",&n);        printf("enter the value of alpha \t e.g 0.2 \n");       scanf("%f",&a);       random[0]=0.4357;       random[1]=0.4146;       random[2]=0.8353;       random[3]=0.9952;       random[4]=0.8004;      printf("\n");       p[0]=1;       system("cls");       printf("n\t\tR(n+i)\t\tP\t\tAcc/Rej\n");       i=0;       p[i+1]= p[0] * random[i];       while(i<n)       {       if(p[i+1] < exp(-a))         {         printf("\n%d\t%f\t%f\t%s",count,random[i],p[i+1],"accept");            i++;      p[i+1]= p

Android Emulator Assignment (MCA)

 TOPICS v Overview v Using the Android Emulator v Starting and Stopping the Emulator v Telephony Emulation v SMS Emulation v Network Status v Network Delay Emulation v Network Speed Emulation v Simulate incoming call with Android emulator v Emulator Limitations v BIBLIOGRAPHY *Overview* The Android emulator is an application that provides a virtual mobile device on which you can run your Android applications. It runs a full Android system stack, down to the kernel level that includes a set of preinstalled applications (such as the dialer) that you can access from your applications. You can choose what version of the Android system you want to run in the emulator by configuring AVDs, and you can also customize the mobile device skin and key mappings. When launching the emulator and at runtime, you can use a variety of commands and options to control its behavior. The Android system images available throug

IMCA V Internet and Web techology Assignment allocation

Roll No.                           Assignment  1                                      Website tutorial of CSS 2                                       Website XML tutorial 3                                       Using Google adword. Developing html tutorial for same 4                                       Creating web technology website using word press 5                                       Website on HTTP 6                                       Creating education portal using Word Press 7                                       Java Script gaming (at least 5 games) 8                                      Creating XML  documents for publications 9                                      Websites on basics of Internet 10                                   Creating a blog using word press

MCA V Simulation and Modeling assignments

1        Input Modeling of Simulation   2   Application of Simulation for solving network flow problems 3   Learning NS2 4  Web Based Simulation 5   Learning NS3 7   Web Based Simulation 9   Simulation of Computer Networks 10   Queuing based website simulation 11   Winter conference simulation research papers -4 12   Online Simulation tool 15  Creating Search Engine Simulator 17     Search Engine Optimization using Simlation 18  Flight Simulation      20    Studying neural network simulation 21   Website simulation  22    Simulation Tools comparitive study   23   Simulation in Java 24  Using Simulation for forecasting 25  Simulation for predictive analysis 26  Using Data mining for Simulation 27   Simulation for predictive analysis 28   simulation with Fuzzy logic 29  Winter conference simulation papers 30   DEVS 31   Simulation and Datamining 32  Simulating website for improving traffic 33  Using Fuzzy Logic for simulation

VBA LAB Exercises (SimulatioModeling)

                                                   Even Roll No.s Write a program in VB to pick a value from the excel and sheet and print out its square root,cube root on the excel sheet. Also, check whether the number is prime or not.  Once this task is complete take a range of values (depicting arrival of customer) from excel and generate its cumulative frequency and using a rand function  generate arrival distribution Odd RollNO.s Write a program in VB to pick two values from the  excel and sheet and print out their addition and multiplication results on the excel sheet.  Also, check whether the sum of number is even or odd  Once this task is complete take a range of values (depicting arrival of customer) from excel and generate its cumulative frequency and using a rand function   generate arrival distribution.  Simulate this process for generating arrival of 100 customers. 1.   Assignment      Generate a set of random numbers taking input seed from