| | |
pls check flowchart for errors/inefficiencies
Thread Solved |
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!
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!
"I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use." - Galileo Galilei
"Science without religion is lame. Religion without science is blind." - Albert Einstein
"Good judgment comes from experience, experience comes from bad judgment." - author unknown
"Anyone who has never made a mistake has never tried anything new." - Albert Einstein
(why "aeinstein"?)
Peace Be with You
"Science without religion is lame. Religion without science is blind." - Albert Einstein
"Good judgment comes from experience, experience comes from bad judgment." - author unknown
"Anyone who has never made a mistake has never tried anything new." - Albert Einstein
(why "aeinstein"?)
Peace Be with You
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?
@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?
バルサミコ酢やっぱいらへんで
[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]
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]
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
•
•
•
•
Originally Posted by WolfPack
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?
Thanks for the feedback!
Last edited by aeinstein; Jul 9th, 2006 at 5:07 pm.
"I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use." - Galileo Galilei
"Science without religion is lame. Religion without science is blind." - Albert Einstein
"Good judgment comes from experience, experience comes from bad judgment." - author unknown
"Anyone who has never made a mistake has never tried anything new." - Albert Einstein
(why "aeinstein"?)
Peace Be with You
"Science without religion is lame. Religion without science is blind." - Albert Einstein
"Good judgment comes from experience, experience comes from bad judgment." - author unknown
"Anyone who has never made a mistake has never tried anything new." - Albert Einstein
(why "aeinstein"?)
Peace Be with You
![]() |
Similar Threads
- pls check mainLoop() pseudocode for errors (C)
- Pls can some one check my log asap?! (Viruses, Spyware and other Nasties)
- Urgent Pls Help: My codes are in errors! (C++)
Other Threads in the C Forum
- Previous Thread: Hi to all! I just want to know if my code is right to calcute the quetelet? Thank you
- Next Thread: using arrays and adding to an array
| Thread Tools | Search this Thread |
* adobe ansi api array arrays binarysearch calculate centimeter char character cm convert copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory dynamic feet fflush file floatingpointvalidation fork forloop frequency getlasterror getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling gtkwinlinux hacking highest homework i/o inches incrementoperators intmain() iso km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. lowest match matrix microsoft mqqueue mysql oddnumber odf open opendocumentformat openwebfoundation pattern pdf performance posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition reversing scanf scheduling segmentationfault send shape single socketprograming socketprogramming stack standard strchr string suggestions test unix urboc user variable voidmain() whythiscodecausesegmentationfault win32api windows.h windowsapi






