Skip to main content

Posts

One ofd best FEL by Kalpana

#include #include #include int ia(int a) { if(a>=0 && a<=25) return 1; if(a>=26 && a<=50) return 2; if(a>=51 && a<=75) return 3; if(a>=76 && a<=99) return 4; return 0; } int sa(int a) { if(a>=0 && a<=25) return 1; if(a>=26 && a<=50) return 2; if(a>=51 && a<=75) return 3; if(a>=76 && a<=99) return 4; return 0; } void main() { int a[5],notice[2][2],b[5],e[5],d[5]={0,0,0,0,0},f[5],i,c[5],s1[5]; clrscr(); for(i=0;i<5;i++) { a[i]=rand()%100; s1[i]=rand()%100; } for(i=0;i<5;i++) { if(i==0) { b[i]=ia(a[i]); f[i]=b[i]; } else { b[i]=b[i-1]+ia(a[i]); if(d[i-1]>b[i]) f[i]=d[i-1]; else f[i]=b[i]; } c[i]=sa(s1[i]); e[i]=65+i; d[i]=f[i]+c[i]; notice[1][0]=b[i]; notice[1][1]=e[i]; if(i>0 && notice[1][0] 0 && notice[1][0]>notice[0][0]) printf( " (%d,%c)(%d,%c)\n",notice[0][0],notice[0][1],notice[1][0],notice[1][1]); if(i==0) printf("

Grocery Shop FEL example

Name: Mukesh H Mulani Roll No : MCA/4527/10 #include #include #include typedef struct { int cno,in_arr,arr,ser_time,tsb,tse,wait,tsis,idle; }customer; int lookup1(int c) { if(c>=0 && c<13 1="1" c="c" else="else" if="if" return="return">=13 && c<25 2="2" c="c" else="else" if="if" return="return">=25 && c<38 3="3" c="c" else="else" if="if" return="return">=38 && c<50 4="4" c="c" else="else" if="if" return="return">=50 && c<63 5="5" c="c" else="else" if="if" return="return">=63 && c<75 6="6" c="c" else="else" if="if" return="return">=75 && c<87 7="7" 8="8&qu

FEL example

Sumit Prasad (MCA/4521/10) #include #include #include int interarr(int rand) { if(rand>=0&&rand<=12) return 1; if(rand>=13&&rand<=25) return 2; if(rand>=26&&rand<=37) return 3; if(rand>=38&&rand<=50) return 4; if(rand>=51&&rand<=62) return 5; if(rand>=63&&rand<=75) return 6; if(rand>=76&&rand<=87) return 7; if(rand>=88&&rand<=99) return 8; return 0; } int main() { int arrival=0,s[10],ia,idle=0,st,servend,servbegin=0,r[10],i,wt=0,notice[2][2]; char ch='A'; clrscr(); for(i=0;i<10 i="i" p="p">  {   r[i]= rand()%100;   s[i]=rand()%100;   } printf("Sno.Interarr Arr Servtime Servbegin Servend WT Idle  Event     Fel\n"); for(i=0;i<5 i="i" p="p">{ ia=interarr(r[i]); st=interarr(s[i]); servend=servbegin+st; wt=servbegin-arrival; if(i>0) printf("(%d,%c),(%d,%c)\n\n&

FEL grocery

FEL by Saurabh Piyush MCA/4509/10 */ FEL GENERATED FOR 500 CUSTOMERS------TIME =1000 mins */ #include #include #include typedef struct { int cust_no,int_arrival,arrival,service,tsb,tse,wait,tsis,idle; }customer; int lookup2(int c) { if(c>=0 && c<11) { return 1; } else if(c>=11 && c<31) { return 2; } else if(c>=31 && c<61) { return 3; } else if(c>=61 && c<86) { return 4; } else if(c>=86 && c<96) { return 5; } return 6; } int lookup1(int c) { if(c>=0 && c<13) { return 1; } else if(c>=13 && c<25) { return 2; } else if(c>=25 && c<38) { return 3; } else if(c>=38 && c<50) { return 4; }

Web technology LAB Question bank

1. WAP to determine length of string input by the user. 2. WAP TO Return the position of the first occurrence of a text in a string. 3. wap TO Search for a text in a string and return the text if found? 4. wap to replace characters in a string? 5. WAP to return today's date and time 6. WAP to calculate the years since 1970 7. WAP to set a specific date 8. WAP to convert today's date (according to UTC) to a string 9. WAP to write a weekday, and not just a number 10. WAP to Display a clock 11. Write a program to create and display an array 12. WAP to concat arrays 13. WAP to join elements of array using JOIN() 14. WAP to Remove the last element of an array 15. WAP to Add new elements to the end of an array 16. WAP to Reverse the order of the elements in an array? 17. WAP Remove the first element of an array? 18. WAP to Select elements from an array, sort an array (alphabetically and ascending)/ sort numbers (numerically and ascending)/Sort numbers (numericall

Web Technology Question bank

QUESTION BANK FOR MO/2012 BCA 5001 Internet and Web Technology 1. Discuss the various methods available for connecting to Internet? 2. What is the difference between Client server mode and peer to peer network? 3. What do you understand by Domain Name System? 4. How IP addressing is done? Discuss the various IP address classes in detail. 5. Discuss in details how the system connects to a particular requested web address. 6. What is unicasting and multicasting? 7. Define the terms : a) routers b) Repeaters c) Bridges d) Gateways 8. Write short notes on web Server? 9. What is the difference between Paired tag and Singular tag 10. Discuss about : a) URL b) HTTP 11. Discuss briefly following terms: a. Internet Server b. Internet Service Provider c. TCP d. E-Mails 12. What is web hosting? 13. What are the factors we need to keep in mind while designing website for the client. 14. How many types of lists can be implemented through HTML? Discuss in brief. 15.