Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
<Removed bold tags - completely unneccessary>

Hi!
A software is Dormitory manager. A feature is arrange many students into rooms of the dormitory.
I have a list student and many rooms (maybe different kind).
So i want my program can arrange they live in a specific room in this domitory automatically with many different criteria(sex, faculty, years in university, province or city).
But i don't know the algorithm?

I need some advice?
Thank you

Sorry, My english not good at all!
Posted
Updated 31-Mar-11 7:19am
v4

You should explain a little bit better what you need.

A good exercise would be to try to know which are the constraints you have (are students of the same sex allowed in one room?) once you've got all your constraints, then you should start thinking on the database needed, how to store the data, which is the exact data you need, relationships between tables...

Once you've got this, then you should think on the GUI of your program... what do you want the user of the program to be able to do...

After that you will need to think of the algorithm that will access the data using the input from the user and that will give you results at the end.

In a few words: divide the problem in layers and then divide the layers in mini-problems. Then you'll be able to make it.

PS: This smells like homework...
 
Share this answer
 
Try google[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900