waa!
this simply means that i need a whole code! T.T
User Profile
Collapse
-
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 :- service time
- waiting time
- calls received
- calls rejected
- total service time
- total waiting time
please refer to the very first post for clarifications ..
the problem is completely stated there!
...Leave a comment:
-
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.... -
#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 .....Leave a comment:
-
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...
No activity results to display
Show More
Leave a comment: