Skip to main content
1-Visitor
August 30, 2011
Solved

need help writing a program using for loops

  • August 30, 2011
  • 2 replies
  • 3148 views

Here's the question, write a computer program that can be used to determine the agnitude and direction of the resultant of n coplaner ofrces applied at a point. What I have now is that Fn.x=Fn cos(theta n) and Fn.y=Fn sin(theta n). I understand the concept of what I need to do, I just don't know how to do it. I want to understand it so if anyone answers please explain whats going on if you can. I want to learn, not just get it done. thanks.

Best answer by Fred_Kohlhepp

For loops?

We don't need no stinking For Loops!!

2 replies

23-Emerald I
August 30, 2011

For loops?

We don't need no stinking For Loops!!

1-Visitor
August 30, 2011

Thank you very much in taking your time to help a very perplexed college student out.

1-Visitor
August 31, 2011

Further to Fred's example I have added a few alternatives, including a For Loop example.

Mike

1-Visitor
August 30, 2011

As Fred indicates the solution can be obtained without Foor Lops, but if your trying to learn how to use For Loops, please provide a worksheet of exactly what your trying to achieve..

Mike