在创建和算法顺序方面需要帮助。 [英] Help needed in creation and order of algorithm.
问题描述
我明天要完成作业,我真的需要一些帮助,所以我该如何解决呢?
在这里发布我的问题或者有人给我发消息吗?
i have homework due tomorrow and i really need some help so how would i go about it?
post my questions here or could someone message me?
removed per posting guidelines
推荐答案
我看不出这里的问题是什么......
I dont see what the question here is...
well我有几个问题......我试图重新阅读第一章但它没有多大帮助..
第一个问题是这个伪代码段用于描述计算里程数每加仑你用你的汽车。并且它希望你找到错误并重新安排它等等...
输入里程数
输入gallonsOfGasUsed
gallonsOfGasUsed / milesTravelled = milesPerGallon
打印milesGerGal
现在就像我说我很傻,但我做的是
Milespergallon = gallonsOfGasUsed / milesTraveled
输入gallonsOfGasUsed
输入里程数
打印平均值
我怀疑我把它弄好了
这是我的下一个问题
http://i33.photobucket.com/albums/d6...t/IMG00141.jpg
well i have a few questions... and im trying to re read chapter one but it doesnt help much..
1st question is This pseudocode segment is intended to describe computing the number of miles per gallon you get with your automobile. and it wants you to find the errors and re arrange it etc...
input milesTraveled
input gallonsOfGasUsed
gallonsOfGasUsed / milesTravelled = milesPerGallon
print milesPerGal
now like i said i suck at this but what i did was
Milespergallon = gallonsOfGasUsed / milesTraveled
Input gallonsOfGasUsed
Input milesTraveled
Print average
and i doubt i got it right
here is my next question
http://i33.photobucket.com/albums/d6...t/IMG00141.jpg
我所做的是
Milespergallon =加仑欧元以上/里程数
输入加仑额外收费
输入里程数
平均打印
what i did was
Milespergallon = gallonsOfGasUsed / milesTraveled
Input gallonsOfGasUsed
Input milesTraveled
Print average
阅读后 - 你为什么改变什么?看起来你1)得到第一个变量,2)得到第二个变量3)使用变量进行计算然后4)打印结果。他们开始的顺序很好。
After reading it - why did you change anything? It looks like you 1) get the first variable, 2) get the second variable 3) make the calculation using the variables and then 4) print the result. They were good in the order they started in.
这是我的下一个问题
http://i33.photobucket.com/albums/d6...t/IMG00141.jpg
您对此有何看法?
此外,请查看我们的发布指南,特别是有关发布您尝试的内容的部分(如第二个问题),以及使用准确描述您的问题的标题。我已经更改了你的帖子标题,如果你认为它应该是不同的/其他的话请告诉我。
What have you tried on this?
Also, please take a look at our Posting Guidelines, especially the parts about posting what you tried (like on your second problem), and using a title that accurately describes your issue. I have changed your thread title, please let me know if you think it should be different/something else.
这篇关于在创建和算法顺序方面需要帮助。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!