Hi,
I need help with Round Robin algorithm. I don't understand how to implement the process.

please refer to this first

Why do so many students have trouble with round robin? It's not even a difficult concept, much less a difficult implementation. Yet every year (right around this time too), we're bombarded with one-liner questions by new members.

For most of history, we observed the passing of seasons from the solstices and equinoxes. Now we just wait for the round robin question ;)

It used to be the airline homework problem. I don't see that much anymore.

Airline homework problem? Whats that?

>Airline homework problem? Whats that?
IIRC, you're supposed to write a system to schedule passengers on a plane to varying degrees of complexity. Usually it's pretty simple, but requires adding and removing passengers and assigning seats.

The airline problem ceased to be interesting when smoking was banned. One of the key tasks was separating the smoking and non-smoking seats.

Also, problems have a memetic quality, in that each succession of noobs find out from their immediate predecessors where all the best places to ask questions are to be found.

commented: Bring back the smoking-related problems... please? +11
commented: Using memetic and noob both in the same sentence deserves green candy! Charles Darwin, would be dancing in his grave. +11

Are most computer science professors that incompetent?

Are most computer science professors that incompetent?

..To be honest, it's unfortunate, you learn more from Google and the forum, than these instructors...it's sad. Neither did i know about the airplane algorithim. For example, on one of the programs, I used a 'break' with a 'for' loop. The program compiled ok, but i lost point because he said, never to break out of a 'for' loop. The point is...the program still worked...

>but i lost point because he said, never to break out of a 'for' loop.
Wow, I would have slapped that guy silly for that kind of nonsense. I didn't know structured programming zealots like that still existed. But I guess if they don't actually write code for a living, it's easy to sit back and criticize real world code using best practices from some computer scientist's wet dream.

well said narue...but by the way, he never told why it's wrong to break out of a for loop..he just said, don't do it. Any reasons why people may say, never to break out of a for loop since you'll get the same result?

>Any reasons why people may say, never to break out of a for loop since you'll get the same result?
Structured programming advocates single entry, single exit. That means only one return from a function (at the end), the only way to leave a loop is to fail the condition, etc... Naturally it's all BS, because often you end up writing even more cryptic code to adhere to the very guidelines that were designed to improve readability. Structured programming is good to a point, but beyond that point it's just silly.

Weird programming standards abound wherever you go, and you have to learn to adapt to whoever is giving the marks / writing the pay cheques.

I've learned that what i actually write for clients and what I learned in class and books is pretty darn far apart and for the most part the instructor has become too far seperated from reality to give good advice.

You get a lot of "The book says..."

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.