C++ ID numbers Batching Simulation

Our project is specified in the following details:

You are to work with a student population whose ID numbers range from 110001 thru 111999 (there are 1999 students).

You are to write a program that will randomly divide the population into several batches of about the same size. Batch sizes may differ from each other by at most 1. (e.g. if the 1999 students are divided into 4 batches, there will be 3 batches with 500 students each and one batch with 499 students)

The program should ask for user input regarding how many batches the population should be divided into. If this input is valid, the program randomly divides the population into the required number of batches. The program then prints all the ID numbers that are in batch 1, from the lowest ID number to the highest numerically, followed by the ID numbers in batch 2, also sorted from lowest to highest, and so on until all ID numbers in each batch have been printed, with ID numbers in each batch sorted from lowest to highest. The program should also report the numbers of students in each batch.

How would you actually do this program? I need assistance in this because I'm just a beginner.
Well, just a beginner or not, you need to put some effort in this. You need to demonstrate that you are trying to resolve this by your own means. As it stands right now, you are asking for someone to do your homework for you. This is a big no-no in this forum.

So what you need to do: Start the project and see how far you can get. If you get stuck at some point, post a specific question on the problem and attach your current code. Also make sure you use code tags when you present code. Read http://cplusplus.com/articles/z13hAqkS/ for more information on how to do this.

You should also read this post (http://www.cplusplus.com/forum/beginner/1/ ) in the Beginners forum.
Topic archived. No new replies allowed.