需要帮助PLZ [英] need help plz

查看:55
本文介绍了需要帮助PLZ的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直想弄清楚这些问题,我似乎无法理解他们......有人可以帮忙吗?


1)写一个完整的程序C ++创建具有10行和10列的二维randomArray

数组,并用随机数分别填充

:第一行随机数在范围[1 ,100),第二行

行,随机数在[100,200]范围内,?,第10行随机

数字在[900,1000]范围内,程序然后在每行的屏幕上显示数组元素




2)创建两个包含10个元素averageRows和averageColums的数组。

计算randomArray每行的平均值,并将它们分别分配给averageRows数组的元素。 (第一行的平均值

的randomArray到averageRows的第一个元素,?

的最后一行randomArray到averageRows的最后一个元素的平均值)。以averageColums数组的方式填写

,但这次使用randomArray的平均值

列。计算数组对角线的平均值

averageRows(e00,e11,?,e99)和第二个

对角线平均值的平均值(e90,e81, ?,e09)。在屏幕上显示所有结果。


thx提前;)

i''ve been trying to figure out these questions and i can''t seem to understand them...can anyone help?

1)Write a full program in C++ that creates the two-dimensional randomArray
array with 10 rows and 10 columns, and fills it with random numbers
respectively: the first row with random number in range [1, 100), the second
row with random number in range [100, 200), ?, the 10th row with random
number in range [900, 1000), The program then displays the array elements
on-screen 10 in each row.

2) Create two arrays with 10 elements averageRows and averageColums.
Calculate the average value for each row of randomArray and assign them
respectively to elements of averageRows array. (The average of the first row
of randomArray to the first element of averageRows, ? the average of the
last row of randomArray to the last element of averageRows). Fill in the
same way the averageColums array but this time with average values of
columns of randomArray. Calculate the average of the diagonal of array
averageRows (e00, e11, ?, e99) and the average of elements of the second
diagonal of averageRows (e90, e81, ?, e09). Display all the results on screen.


thx in advance ;)

推荐答案


我一直试图弄清楚这些问题,我似乎无法理解它们......任何人都可以帮忙吗?


1)写一个完整的C ++程序,它创建了包含10行和10列的二维randomArray

数组,并用随机数字分别填充

:带随机数的第一行在范围[1,100]中,第二行

行,随机数在[100,200]范围内,?,第10行随机

在范围内[00] ,1000),程序然后在每行的屏幕上显示数组元素




2)创建两个包含10个元素averageRows和averageColums的数组。

计算randomArray每行的平均值,并将它们分别分配给averageRows数组的元素。 (第一行的平均值

的randomArray到averageRows的第一个元素,?

的最后一行randomArray到averageRows的最后一个元素的平均值)。以averageColums数组的方式填写

,但这次使用randomArray的平均值

列。计算数组对角线的平均值

averageRows(e00,e11,?,e99)和第二个

对角线平均值的平均值(e90,e81, ?,e09)。在屏幕上显示所有结果。


thx提前;)
i''ve been trying to figure out these questions and i can''t seem to understand them...can anyone help?

1)Write a full program in C++ that creates the two-dimensional randomArray
array with 10 rows and 10 columns, and fills it with random numbers
respectively: the first row with random number in range [1, 100), the second
row with random number in range [100, 200), ?, the 10th row with random
number in range [900, 1000), The program then displays the array elements
on-screen 10 in each row.

2) Create two arrays with 10 elements averageRows and averageColums.
Calculate the average value for each row of randomArray and assign them
respectively to elements of averageRows array. (The average of the first row
of randomArray to the first element of averageRows, ? the average of the
last row of randomArray to the last element of averageRows). Fill in the
same way the averageColums array but this time with average values of
columns of randomArray. Calculate the average of the diagonal of array
averageRows (e00, e11, ?, e99) and the average of elements of the second
diagonal of averageRows (e90, e81, ?, e09). Display all the results on screen.


thx in advance ;)



你不是什么了解?是数据创建,操纵......?

What don''t you understand? Is it the data creation, the manipulation...?


他们两个......它如此令人沮丧...顺便说一句......我是编程的菜鸟
both of them...its so frustrating...btw...i''m a rookie to programming



他们两个......这太令人沮丧了...顺便说一句...我是新手编程
both of them...its so frustrating...btw...i''m a rookie to programming



好​​的,所以你需要这个算法的帮助 - 让我们一次拿一个。


你能告诉我你要采取的步骤吗?解决第一个,没有电脑?

Ok, so you need help with the algorithm - let''s take them one at a time.

Can you tell me the steps you would take to solve the first one, without a computer?


这篇关于需要帮助PLZ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆