![]() |
| ||
| pls check flowchart for errors/inefficiencies 1 Attachment(s) Hi All, I've converted the pseudocode from this thread into a flowchart, and I'd greatly appreciate if anyone can point out any errors and/or inefficiences in the represented coding. as posted in the above referenced thread, the flowchart represents a solution for a chapter exercise, as follows: "The problem states that a library records monthly book withdrawls, capturing the Library of Congress Number, Author and Title, for each month (sorted by the Library of Congress Number for each withdrawl). The initial problem required the merger of the January and Feburary files - which I was able to do without difficulty, but the follow-on problem required that any redundant records, regardless of file of origin, not be written to the merged file." Thanks! |
| ||
| Re: pls check flowchart for errors/inefficiencies [rant]flow charts are evil little critters and should be banned from all educational institutions. I've never seen anyone create or use them outside the university. And most programming books don't even talk about them.[/rant] |
| ||
| Re: pls check flowchart for errors/inefficiencies On the contrary, I find them pretty useful. Both as a communicating tool, since pseudocode can differ according to the person, and as a tool to understand the algorithm better. For example I couldn't make head or tail out of the OP's pseudocode, since I am not used to pseudocode like that. But the flowchart was easier to understand. But this may depend on personal preferrence. @aeinstein :- Glanced at the flow chart and it looked okay to me. What was the tool you used to draw it? Was it a free tool? |
| ||
| Re: pls check flowchart for errors/inefficiencies [aside] I tend to agree with 'Dragon here. Like comments that don't match the code, a flowchart may not match the implementation code. And then you get to debug in two places -- the flowchart and the actual code. Which one is correct? Bleah. And the implementation always seems to have last minute details that aren't reflected in the flowchart. But bosses and such like flowcharts. And laying out an initial design can be beneficial. I just don't look at them as gospel, merely the initial skeletal framework. [/aside] |
| ||
| Re: pls check flowchart for errors/inefficiencies Quote:
Thanks for the feedback! :) |
| ||
| Re: pls check flowchart for errors/inefficiencies Yes, I agree. Without doubt, flowcharts are excellent devices for planning out the layout of a complicated program. And a must for newbies and definitely useful for schools and universities. |
| All times are GMT -4. The time now is 2:06 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC