| | |
Can u test pseudocode?
Thread Solved |
Well, the pesudo code should be converted to a code and then try with some test input.
Well, YES, you cant just compile a pesudo code. So on what language are you suppose to implement the pesudo code. There are few tools which converts the pesudo code to code. But, you will have to learn the pesudo code standard and which that specific tools can understand.
Some hint on the looks like Yacc, Yapp. Wel those tools are used for compiler design but you cant use it for your application. They understand a notation called BNF.
That should give an idea. YOU WILL HAVE TO IMPLEMENT THE CODE TO TEST IT.
ssharish
Well, YES, you cant just compile a pesudo code. So on what language are you suppose to implement the pesudo code. There are few tools which converts the pesudo code to code. But, you will have to learn the pesudo code standard and which that specific tools can understand.
Some hint on the looks like Yacc, Yapp. Wel those tools are used for compiler design but you cant use it for your application. They understand a notation called BNF.
That should give an idea. YOU WILL HAVE TO IMPLEMENT THE CODE TO TEST IT.
ssharish
I don't agree with the fact that you have to implement it. As the assignements states: write test plans and dry runs. That means that you'll have to identify where the code could break, what critical points are, are there range issues, what values are needed by variables to fall through an if/case/while/for (or not).
>Well from wot i no pseudocode isnt real code so how can i test it?
The same way you test real code without running it: trace the execution with paper and pencil using a small amount of sample data. Not only does this give you a better idea of what your code is doing, regular paper tests help you to think like a compiler when you're actually writing code.
The same way you test real code without running it: trace the execution with paper and pencil using a small amount of sample data. Not only does this give you a better idea of what your code is doing, regular paper tests help you to think like a compiler when you're actually writing code.
New members chased away this month: 4
•
•
•
•
test plans, desk checks and dry runs.
Narue's comments are spot on. If students (and real life programmers, as well) would spend more time checking, tracing, double checking their logic before ever touching the keyboard, so much anguish and time would be saved in the long run.
Everyone's gotta believe in something. I believe I'll have another drink.
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
![]() |
Similar Threads
- We only give homework help to those who show effort (Computer Science)
- Hey!! Need Help With A Pseudocode Problem, Help Please (C)
- Help with class project (Java)
- Need help with Array Validation (C++)
- Another pseudocode problem... (Computer Science)
- cpu scheduler in java problem (Java)
- 2-D array (C++)
- PseudoCode Help For Newbie (Computer Science)
- Need help writing a program (C++)
- Help with Arrays needed! (C++)
Other Threads in the IT Professionals' Lounge Forum
- Previous Thread: Hacking = Writing?
- Next Thread: Delphi 2006 registration
Views: 1850 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for IT Professionals' Lounge
1gbit advertising advice amazon answers archive british broadband business businessprocesses carrier censorship cern china cio connectivity consumer consumers corporateearnings css datatransfer dictionary digg digital ebay ecommerce email employment environment facebook food government grid high-definition hottub infodelivery infotech intel internet interview ipod isp japan lhc library malware marketing mit moonfruit news onlineshopping php piracy piratebay pope porn program questions r&d religion remoteworking research retail schools security sex shopping simple skype smallbusiness smb sms socialmedia socialnetworking software softwareengineer spam speed spending ssl startrek statistics stocks study stumbleupon survey tabletpc technology touch-screen touchscreen training twitter uk vbulletin videoinprint vulnerability web webdeveloper windows words






