介绍C编程分配。需要帮忙。完全失去了。?

问题描述:

这是我第一次编程。我不知道如何解决这个问题。我想我可以处理编码,如果有人可以使这更清楚,并帮助编制一个伪代码。任何帮助将非常感激。这是:



http://softwareengineering.weebly.com/uploads/5/3/0/9/530935/lab1.pdf

This is my first time programming. i have no idea how to tackle this. I think i could take care of the coding if someone could make this clearer and help with working out a pseudocode. Any help would be much appreciated. Here it is:

http://softwareengineering.weebly.com/uploads/5/3/0/9/530935/lab1.pdf

这里我们不做你自己的作业。你应该自己努力做到这一点,并且只有当你遇到困难时才在这里问。

在这个特定的任务中,相当一部分努力应该致力于理解问题的范围,即行为铅酸电池。这项任务完全取决于您。你已经认识到尝试设计一个好的算法。我们可以帮助实施技术细节。
Here we don't do you own homework. You should try hard doing it yourself, and ask here only when you get stuck.
In this particular assignment a considerable part of the effort should be dedicated on understanding the universe of the problem, that is the behavior of lead acid batteries. This task is completely up to you. You have tounderstand it an try to design a good algorithm. We could help on implementation technical details.


想象一下你的自己在一家公司工作,你的老板给了你这个问题,那你怎么解决这个问题呢?





您尝试过什么?你被困在哪里?这是你第一次,你应该感到兴奋。拿一支笔和一张纸,写下一个算法,在阅读完陈述后会浮现在你的脑海中。



如果你有一个好的流程图,你可以开始编码。逐步实现每件事。记住一件事,你采取的帮助越多,就越依赖人们寻求解决方案。



利用这个问题来发展你的逻辑和技能。心灵从第一个问题本身开始发展。



你的问题是:

Imagine your self to be working in a company and your bosses gave you this question, so how would you be tackling this?


What have you tried? where are you stuck? This is your very first time, you should be excited. Grab a pen and a paper, write down an algorithm which comes to your mind after reading the statement.

If you have a good flow chart you can start coding. Realize every thing step by step. Remember one thing the more help you take, the more you will be dependent on people for solutions.

Utilize this problem to develop your logic and skill. Mind starts developing from the very first problem itself.

Your question is :
引用:

如果有人可以更清楚地帮助解决伪代码问题

if someone could make this clearer and help with working out a pseudocode





但它应该是:





But it should be :

引用:

我被困在这一行,怎么回事?

I am stuck at this line, whats wrong?





当你达到这个级别时,你甚至不会发布你被卡住的地方。



我读到pdf ,这是一个很好的。第一段说:





When you reach this level you wont even post where you are stuck.

I read that pdf, its a good one. The very first para says:

引用:

编程方面要熟悉:

?决策结构的使用

?使用重复结构

Programming aspects to get familiarized with:
The use of decision structures
The use of repetition structure





您的老师需要您熟悉上述2个概念。不要将它作为一项任务,将其作为一项学习任务。他希望你学习它们。







Your teacher needs you to be familiar with the above 2 concepts. Dont take it as an assignment take it as a learning task. He wants you to learn them.


引用:

决策结构



开始阅读if else:



http://www.tutorialspoint.com/cprogramming/c_decision_making.htm [ ^ ]








Start reading about if else :

http://www.tutorialspoint.com/cprogramming/c_decision_making.htm[^]



Quote:

重复结构





http://www.cs.fsu.edu/~myers/c++/notes/control2.html [ ^ ]

使用所有语言的循环都是一样的。





了解如何从骗局中获取用户输入唯一。您必须知道与AH等级和东西相关的所有公式。



根据用户输入记下公式并将其转换为代码。足够的提示开始编码。



http://www.cs.fsu.edu/~myers/c++/notes/control2.html[^]
Use of loops in all languages are same.


Find out how to take a user input from the console. You must know all the formulas related to AH-rating and stuff.

Write down the formula according to user input and translate it to a code. Enough hints start coding.