User Profile

Collapse

Profile Sidebar

Collapse
ch13f
ch13f
Last Activity: Sep 27 '07, 05:06 AM
Joined: Jul 8 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • waa!
    this simply means that i need a whole code! T.T
    See more | Go to post

    Leave a comment:


  • i apologize for that ..

    here is it ..

    asks the user to input number of hours
    a caller arrives depending on the value of the generated random numbers
    the expected outputs are :
    1. service time
    2. waiting time
    3. calls received
    4. calls rejected
    5. total service time
    6. total waiting time


    please refer to the very first post for clarifications ..
    the problem is completely stated there!
    ...
    See more | Go to post

    Leave a comment:


  • ch13f
    started a topic Application of Queues : Information Center Simulation
    in C

    Application of Queues : Information Center Simulation

    The overall simulation should proceed as follows:
    A simulated clock is initialized to 0 and the repeatedly advanced by 1 minute until it is equal to some given time limit(minutes). On each "tick" of a click, a check is made to determine if service has been completed for the current call, and if so, a new call is taken from the queue of calls that are waiting for service (if there are any), and its simulated service is initiated....
    See more | Go to post
    Last edited by sicarie; Sep 24 '07, 12:59 PM. Reason: Removed useless bolding

  • ch13f
    replied to Data Structure
    in C
    #include<stdio. h>
    main()
    {
    int x,y,num,i;
    int ans[500];
    clrscr();
    printf("Enter number:");
    scanf("%d",&num );
    x=num%2;
    y=num/2;
    i=0;
    while(y){
    if(!x)
    ans[i]=x;
    x=x%2;
    y=y/2;
    i++;
    }
    for(i;i>=0;i--) printf("%d", ans[i]);
    getch();
    }

    that's for the #2 .....
    See more | Go to post

    Leave a comment:


  • ch13f
    started a topic Data Structure
    in C

    Data Structure

    Kindly help me with these problems ..
    *sigh* I'm having a hard time for this ..

    C Programming please ..

    Problem 1 : Create a program to test the package for the ADT stack
    INPUT : Commands entered by the user
    OUTPUT : List of commands and messages describing the effects of each command.

    SAMPLE OUTPUT :
    Use the ff. commands to test the ADT Stack .
    C - Create a stack...
    See more | Go to post
No activity results to display
Show More
Working...