需要帮助(实现伪代码)(学校作业) [英] Need help (implement pseudocode) (school homework)

查看:117
本文介绍了需要帮助(实现伪代码)(学校作业)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

利润分析

XXX确定每个财政年度的利润。

自2002年起,这些数字每年以美元计算。

在此期间:

1.确定平均收益(算术平均值)

2.最大增益

3.最小增益

4.与平均值的最大偏差



我的尝试:



利润分析

XXX确定每个财政年度的利润。

自2002年起,这些数字每年以美元计算。

在此期间:

1.确定平均收益(算术平均值)

2.最大增益

3.最小增益

4.与平均值的最大偏差

解决方案



在此期间:

1.确定平均增益(算术平均值)

2.最大收益

3.最低收益

4.与平均值的最大偏差



我尝试过:



利润分析

XXX确定每笔财务的利润年。

自2002年以来,这些数据每年在


中提供。

在此期间:

1.确定平均增益(算术平均值)

2.最大增益

3.最小增益

4。偏离平均值的最大偏差


引用:

我不知道如何做我的作业,我是编程的初学者:(



好​​吧,我们不会为你做这件事 - 这会打败整个家庭作业的目的,你就不会有任何好转!



所以,坐下来开始知道如何做的事情!

你有一套数字,然后你是从某个地方来的 - 我不知道在哪里 - 所以首先阅读那些并将它们存放在某个地方。你知道怎么做,我想?



之后,它并不是很复杂,这些都是基本的统计功能。

例如,第一个:增益的算术平均值。增益大概是在数据中,或者你需要处理数据来计算增益 - 再次,我不知道你的数据是什么,所以你需要看一下。

一旦你有了增益值算术平均值很简单:总和(值)/计数(值)

所以如果你有三个值1,3,5那么sum(values)/ count(values)==( 1 + 3 + 5)/ 3 == 9/3 == 3

编码很简单,是吗?



给它一个尝试,看看你有多远,然后告诉我你有什么,我们将继续前进。 OK?


Profit Analysis
The XXX determines the profit in each financial year.
Since the year 2002, the figures are available on an annual basis in $.
For this period:
1.determine the mean gain (arithmetic mean)
2. the maximum gain
3. the minimum gain
4. the largest deviation from the mean value

What I have tried:

Profit Analysis
The XXX determines the profit in each financial year.
Since the year 2002, the figures are available on an annual basis in $.
For this period:
1.determine the mean gain (arithmetic mean)
2. the maximum gain
3. the minimum gain
4. the largest deviation from the mean value

解决方案

.
For this period:
1.determine the mean gain (arithmetic mean)
2. the maximum gain
3. the minimum gain
4. the largest deviation from the mean value

What I have tried:

Profit Analysis
The XXX determines the profit in each financial year.
Since the year 2002, the figures are available on an annual basis in


.
For this period:
1.determine the mean gain (arithmetic mean)
2. the maximum gain
3. the minimum gain
4. the largest deviation from the mean value


Quote:

i have no idea how to do my homework , i'm beginner in programing :(


Well, we aren't going to do it for you - that would defeat the whole purpose of homework, and you wouldn't get any better!

So, sit down and get started with the bits you do know how to do!
You have a set of figures, then you get from somewhere - I have no idea where - so start by reading those and storing them somewhere. You know how to do that bit, I assume?

After that, it's not really complex, these are basic statistic functions.
For example, the first: Arithmetic mean of the gain. Gain is presumably in the data, or you need to process the data to calculate the gain - again, I have no idea what your data is, so you need to look at that.
Once you have the "gain values" arithmetic mean is simple: sum(values) / count(values)
So if you have three values 1, 3, 5 then sum(values) / count(values) == (1 + 3 + 5) / 3 == 9 / 3 == 3
That's simple to code, yes?

Give that a try, see how far you get, and then show me what you have and we'll move on. OK?


这篇关于需要帮助(实现伪代码)(学校作业)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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