954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

i need a code for first come first serve simulation using visual basic

:cry: i need a code for first come first serve simulation based on vb programming :rolleyes:

mark johnson
Newbie Poster
1 post since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

Hello,

This is the C++ forum; your request involves Visual Basic, and that is why I moved the post to that forum.

It is also the rule at DaniWeb that we do not do your homework; we will help debug your code, we will help you design your program, but we cannot supply you the completed project. That is unethical for you to ask, and unethical for us to provide.

Please provide your information, and we can get to work with you. As I am not a vb programmer, I will have little else to say.

Christian

kc0arf
Posting Virtuoso
Team Colleague
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57
 
:cry: i need a code for first come first serve simulation based on vb programming :rolleyes:

This sounds extraordinarily like homework. Why not post what you have already done and maybe we can help when it looks like you've had a try yourself.

mnemtsas
Posting Whiz in Training
200 posts since Jul 2004
Reputation Points: 16
Solved Threads: 1
 

Write down what you want the scenario to be -
For each person in the line,
serve first person only
next

Convert it to code

Jupiter 2
Posting Whiz
386 posts since May 2009
Reputation Points: 33
Solved Threads: 27
 

#include
main()


{
float avgwt,avgtt;
char pname[10][10],c[10][10];
int wt[10],tt[10],bt[10],at[10],t,q,i,n,sum=0,sbt=0,ttime,j,ss=0;
printf("\n\nEnter the number of processes:");
scanf("%d",&n);
printf("\n\n Enter the NAME, BURST TIME and ARRIVAL TIME of thr process");
for(i=0;iat[j])


{
t=at[i];
at[i]=at[j];
at[j]=t;
q=bt[i];
bt[i]=bt[j];
bt[j]=q;
strcpy(c[i],pname[i]);
strcpy(pname[i],pname[j]);
strcpy(pname[j],c[i]);
}
}
wt[0]=0;
for(i=0;i

shamila kaatnam
Newbie Poster
1 post since Jan 2010
Reputation Points: 6
Solved Threads: 0
 

please post explanation about the code that you've shown/post

emilycox08@yaho
Newbie Poster
1 post since Feb 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You