Simple C Programming - 30x30 random array generation

I have limited time and require this by Friday the 30th. Very simple, almost trivial.

Generate a two-dimensional array of integers of 30 rows by 30 columns that contains 900 random numbers between 0 and 9. Print out the array (well formatted) and do the following computations:

1. Calculate and print out the sum of the first row.

2. Calculate and print out the average of the main diagonal (from top-left 0,0 to bottom-right 29,29).

3. Count and print out how many zeros are found in the first column.

Now you will generate a succession of similar arrays. How many attempts does it take to have all the numbers in the main diagonal with a value of 7 or more? Stop generating arrays when you reach that goal and print out the number of attempts it took. Print out the array.

Taidot: C-ohjelmointi, tekniikka

Näytä lisää: attempts array main diagonal, top programming, the c programming, random no generation in c, programming array, goal programming, c programming random number, c programming or, c programming arrays, c programming array, arrays in programming, arrays in c programming, array programming, array in c programming, array c programming, 0 c programming, count print zeros found column, array contains 900 random numbers, succession, simple c

Tietoa työnantajasta:
( 1 arvostelu ) toronto, Canada

Projektin tunnus: #4374339

Myönnetty käyttäjälle:


hi , i can help you with this

$40 USD 1 päivässä
(0 Arvostelua)

6 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Hi, I can help you.

$75 USD 1 päivässä
(37 arvostelua)

Let me help you. Please check your pmb.

$50 USD 1 päivässä
(13 arvostelua)

Dear Kinsman42. I can do it. I have 7 years experience in C/C++. I can start immediately. Regards.

$103 USD 1 päivässä
(5 arvostelua)

It will take a day.

$154 USD 3 päivässä
(0 arvostelua)

Hi. Employer. I read your project description and i think that I am a qualified developer for you. I have enough experience in C++ develop. If you want I can do it in 24 hours(1day). I'm going to develop on VS6, VS2010 Lisää

$55 USD 3 päivässä
(0 arvostelua)

i can do it

$110 USD 2 päivässä
(0 arvostelua)