Number of interactions using 2-D array

This is a discussion on Number of interactions using 2-D array within the C Programming forums, part of the General Programming Boards category; Hello, This is my first day with you. I would be very grateful if you could help me. This figure ...

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    2

    Number of interactions using 2-D array

    Hello,

    This is my first day with you. I would be very grateful if you could help me.

    This figure explains the code about the interactions between two components in time t.

    http://www12.0zz0.com/2010/05/23/22/513194319.jpg

    The total number of interactions = 13
    Group1 consists of components 1, 2 and 3 ( the percentage of interaction 3/13 ).
    Group2 consists of components 4, 5 ( the percentage of interaction 2/13 ).
    Group3 consists of components 0 ( the percentage of interaction 1/13 ).


    Write a program that declares an n*n matrix name (Data) where n is the number of components; the contents of Data (entered by the user) are the number of interactions between any pair of components. In the above figure, Data [1, 2] = 3 because number of interactions between components 1 and 2 is 3. Output of your program is a list of groups with their interactions percentage

    I really appreciate any help.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    There's no royal road to computer programming, and use of four-color text does not impress us.

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    2
    ^ ^

    if you want to help , I'd be grateful
    otherwise don't reply.

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    I did help, by pointing out just how badly you violated both the spirit and the rules of the forum. If you don't want to follow that pointer, that's not my concern.

  5. #5
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by prince-abod View Post
    ^ ^

    if you want to help , I'd be grateful
    otherwise don't reply.
    If you want to read the forum guidelines, and do your own homework, we'd be greatful. Otherwise, don't post.


    Quzah.
    Hope is the first step on the road to disappointment.

  6. #6
    Registered User
    Join Date
    Jun 2009
    Posts
    452
    and use of four-color text does not impress us.
    I dunno, I am impressed...

    Anyway, what are you having trouble with? Declaring an array? Putting numbers in it? Printing things? I mean, this is as basic as it gets. Write some code and post it.
    Last edited by KBriggs; 05-23-2010 at 10:00 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. using realloc for a dynamically growing array
    By broli86 in forum C Programming
    Replies: 10
    Last Post: 06-27-2008, 06:37 AM
  2. Logical errors with seach function
    By Taka in forum C Programming
    Replies: 4
    Last Post: 09-18-2006, 06:20 AM
  3. Class Template Trouble
    By pliang in forum C++ Programming
    Replies: 4
    Last Post: 04-21-2005, 05:15 AM
  4. Struct *** initialization
    By Saravanan in forum C Programming
    Replies: 20
    Last Post: 10-09-2003, 01:04 PM
  5. Array Program
    By emmx in forum C Programming
    Replies: 3
    Last Post: 08-31-2003, 01:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21