Git Product home page Git Product logo

pseudocode-to-java-code's Introduction

Pseudocode-to-java-code

This is a program which takes the pseudo code instructions and create a executable java code. It is still in development now it is able to write for loop, if else and elsif condition and print statements.

ex:
enter the file nametest3
enter the code

for 5 times
if 'for1 eq 2'
print ' if condition working'
End if
elif 'for1 eq 3'
print 'else if is working'
End else if
else
print 'else is Working'
End else
End for
End

output code:
public class test3 {

public static void main(String[] args)
{
for( int D=0;D<5;D++)
{
if (D == 2)
{
System.out.println(" if condition working");
}
else if (D == 3)
{
System.out.println("else if is working");
}
else
{
System.out.println("else is Working");
}
}
}
}

#For Function enter the file name test3
enter the code

function hello
return type void
Inputs with data type //you can leave it empty or write the parameters
print 'hello i am a function'
End function
create object //creates object of same class if not mentioned
enter the object name obj1
call hello
object name obj1
parameters
End

#Output public class test3 {

public static void main(String[] args) 
{
test3 obj1= new test3();
obj1.hello();
}
public void hello()
{
System.out.println("hello i am a function");
}

}

pseudocode-to-java-code's People

Contributors

vijeth11 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.