Flowchart Help with Homework Equations

  • Thread starter Thread starter Ronaldo95163
  • Start date Start date
AI Thread Summary
The discussion focuses on the use of flowcharts to represent homework equations, particularly in the context of a for loop. Participants express uncertainty about the accuracy of the flowchart created, noting that traditional flowchart symbols may not adequately capture the complexities of a for loop, such as initialization, testing, and incrementing. One contributor mentions that their teacher introduced a specific "automatic counter box" to represent loop variables and limits. However, there is concern that this simplification may lead to confusion, especially when translating the flowchart into lower-level programming languages like assembly. Overall, the conversation emphasizes the need for clarity in flowchart design to effectively represent programming constructs.
Ronaldo95163
Messages
77
Reaction score
1

Homework Statement


Given in the picture below, part c

Homework Equations


The Attempt at a Solution

I attempted it with a flowchart shown in the pic below as well. Not sure if what I did was correct though
 

Attachments

  • flowcht.jpg
    flowcht.jpg
    30 KB · Views: 388
  • IMG_20140319_195209.jpg
    IMG_20140319_195209.jpg
    20.3 KB · Views: 454
Last edited by a moderator:
Physics news on Phys.org
Ronaldo95163 said:

Homework Statement


Given in the picture below, part c


Homework Equations





The Attempt at a Solution




I attempted it with a flowchart shown in the pic below as well. Not sure if what I did was correct though
Overall it looks OK to me, but I don't remember ever seeing a flowchart symbol to represent a for loop. Is that something you've been taught? There is a lot that goes on in a for loop that gets glossed over with such a symbol, such as the initialization of the loop counter variable, the test to get out of the loop, and the incrementing of the loop counter.
 
Our teacher showed us it as an automatic counter box, The left most value represents the starter value, the right most represents the amount to increment by each time, the top most is the variable and the bottom most is the value to end at
 
Ronaldo95163 said:
Our teacher showed us it as an automatic counter box, The left most value represents the starter value, the right most represents the amount to increment by each time, the top most is the variable and the bottom most is the value to end at

That's reasonable, but I agree w/ Mark that it glosses over the real workings. It is one thing if you use a high-level language loop control that pretty much mimics that box, but if you are writing full loop control in, say, assembly language, your flowchart will not reflect what the code really looks like and may confuse you if things go wrong and you have to debug it.
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...

Similar threads

Replies
69
Views
23K
Replies
3
Views
5K
Replies
27
Views
5K
Replies
13
Views
2K
Replies
8
Views
3K
Replies
3
Views
2K
Back
Top