Important , I need a HELP with a programm ASAP

In network simulation, node placement is one way to create and describe a simulated network. Write a C++ program to create a node placement file named “Nodes_Loc.txt” for 50 nodes in a network of size = W x L where W, L >= 100. The user should enter the dimensions W and L of the network. The node placement file must include the node Id (which is an integer number between 1 and 50) and its location (x,y) which is generated randomly. Also, the location of any node must be within network area and no two nodes should have the same location. The distance between two nodes must be at least 2 to avoid interference between them. For a sample input of W = 100 and L = 100, the node placement file should look like:

0 (86.645, 4.559)
1 (21.641, 72.716)
2 (18.149, 19.028)
3 (55.382, 27.754)

50 (21.174, 94.797)
Your program must implement and use the following:
1. Two arrays for x coordinate and y coordinate of node locations.
2. The function: void rand_location(float& , float&) to generate a random location for a node. There should be a uniqe seed for each run.
3. The function: bool exist_val(float axis[], float a) to check if the coordination is already exist or not.
4. The function: bool interferance(float a, float b, float axis_1[],float axis_2[]) to check if the current node location is interfering with other nodes or not.
5. The function: void insert(float axis[], float a, int index) to insert the value a into the array at offset index.
6. The function: int write_loc(float axis_1[],float axis_2[]) to write out the node placement file.



I am waiting your help as soon as possible .


Regards ,
Help with what??? You haven't posted any code to look at or asked any questions.

No one here will code this for you. You will get help if you try it yourself and post what specific problems you're having.
can u just explain the question ..?
i did not understand the question too..
can any body explain it for us !
mee too i could not understand the question pleeeeaaaase HELP it's urgent !!
I think he needs to automaticly generate 50 random node locations with rand_location(), check every one with exist_val() and interferance(), if they are OK insert them with insert() and when all 50 are inserted, print them with write_loc(). Am I right?
If you don't understand the question shouldn't you, like, ask your teacher/tutor/professor (whatever it's called at your place)?
please anyone can present help for me then i'l give him a prize (MONEY)
contact me on :stscts206@hotmail.com
Topic archived. No new replies allowed.