DOes any one can help me to convert pseudo code to code in c# Pseudocode: 1. Let X be the variable currently being assigned.
Online automatic pseudo code to flowchart generator with plugins for JIRA and Confluence. SVG, PNG and PDF export. Unlimited free trial. Re: convert Java code to pseudo code 843785 Jul 24, 2008 3:11 PM ( in response to 843785 ) It won't work it stops in a never ending loop!
Let x be the value being assigned to X. Find all the binary constraints that are associated with X. For each constraint: 1. For each neighbor variable, Y, connected to X by a binary constraint.
For each variable value y in Y's domain 1. If constraint checking fails for X=x and Y=y 1. Remove y from Y's domain 2.
If the domain of Y is reduced down to the empty set, then the entire check fails: return False. If all constraints passed declare success, return True THNX.
When answering a question please:. Read the question carefully. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome. Don't tell someone to read the manual.
Chances are they have and don't get it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid.
Well you phrased your question badly. You don't write peudocode 'for java'. The idea of pseudo code is it is of a high enough language level for it to be developed into any programming language. The idea is as follows: Begin with a definition of your problem in readable English - e.g 'Search an array for an object, and return its position in the array' Then break that down into pseudo code - e.g mySearch ( objectType array, object ) FOR each item in the array IF arrayiterator = object RETURN true END IF END FOR RETURN false Then you create your java code from the pseudo code. Most people new to the idea will prefer to code the java first - that is ok for simple problems, but start doing anything complex and you'll need to write the pseudo code first. P.S the board software will probably remove my spacing/indentation in the pseudo code but it was laid out nicely:).