Hi friends,

I am a final year Mechanical Student and I am doing my Final year project in C++. My project requires some complicated programming in C++..

Here are the details.

Initially I need to create a random matrix.

The user will give the no of rows and columns.

For example, if the user gives no of rows as 5 and no of columns as 5, the program must randomly generate 5*5 matrix.

Also the numbers must range from 0 to 1.5 only.. All are decimal numbers..

For example, if it is a 5*5 matrix, all 25 numbers should not be non zero. Almost 15 or 16 numbers should be zero. The rest of the non zero numbers should be dispersed such that no row contains all numbers as zeros..

This must work out for any number of row or column..

Next step is even more difficult.

The program must shuffle the rows and columns of this matrix and obtain 10 new matrices..

The initial matrix should be rearranged randomly to give these 10 matrices.

After this I have to apply PSO algorithm to these matrices. But that is only after this program.

Please Help friends.

Thank You.

Prasanna Venkat 0 Newbie Poster

pseudorandom21 166 Practically a Posting Shark

arkoenig 340 Practically a Master Poster

Prasanna Venkat 0 Newbie Poster

Fbody 682 Posting Maven Featured Poster

arkoenig 340 Practically a Master Poster

Prasanna Venkat 0 Newbie Poster

Fbody 682 Posting Maven Featured Poster

mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster

pseudorandom21 166 Practically a Posting Shark

pseudorandom21 166 Practically a Posting Shark

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.