Java coding converted to pseudo code

java to pseudo code converter online
java-2-pseudo
how to write pseudocode
sql pseudo code
vb to pseudo code converter
pseudocode for classes
pseudo code rules
pseudo code example questions

I have to convert this Java code to pseudocode. The program accepts 2 times and returns the time span in minutes.

In Java we have int hr1_int and int hr2_int so what they will be in pseudo code? And the String , sub-string, parseInt, try-catch structure also what will they be in pseudo?

try
{
    hr1_int = Integer.parseInt(hr1);
    min1_int = Integer.parseInt(min1);

}
catch(NumberFormatException e)
{
    System.out.println("The input time is wrong. Please reinput");
    continue;
}

hr1 = time1.substring(0,2);

Java coding converted to pseudo code, Pseudocode varies from person to person, since it's basically just sentences/phrases formatted to look like code. For example, I would write your example in pseudo code this way: hour = parseInteger(hourString); minute = parseInteger(minuteString); if (errors) output("error message"); Looking for learn coding in java? Search now! eTour.com is the newest place to search, delivering top results from across the web.

Pseudocode varies from person to person, since it's basically just sentences/phrases formatted to look like code.

For example, I would write your example in pseudo code this way:

hour = parseInteger(hourString);
minute = parseInteger(minuteString);
if (errors)
    output("error message");

That's just me though, I prefer my pseudocode to look more code-like. Someone else might write the exact same example like so:

Try to
    Parse hour integer,
    Parse minute integer
If there were errors,
    Write the errors to console.

It's totally dependent on the person writing it.

L09-V02: Converting pseudo-code to Java code, This video demonstrates how to write a Java program based on a solution described in pseudo Duration: 8:29 Posted: Jul 4, 2013 There’s no formal “pseudocode”, the word just means an English explanation of what your code does. No one writes converters to pseudocode. (And unless you develop some formal pseudocode, you can’t design a converter from pseudocode.)

public String getPlatform ()
{
   return this.Platform;
}

public String getInterviewerName ()
{
   return this.InterviewerName;
}

public String getDeveloperName ()
{
   return this.DeveloperName;
}

public int getWorkingHour ()
{
   return this.WorkingHour;
}

public void setDeveloperName (String newDeveloperName)
{
   this.DeveloperName = newDeveloperName;
}

public void Display ()
{
   System.out.println ("The platform is :" + this.Platform);
   System.out.println ("The interviewer name is:" + this.InterviewerName);
   System.out.println ("The Working Hour is:" + this.WorkingHour);

   if (this.DeveloperName != "")
   {
      System.out.println ("The developer's name is:" + this.DeveloperName);
   }
}

Java tutorial 12 - Introduction to Pseudo codes, Java programming tutorial 12 - Introduction to Pseudo codes Introduction to Pseudo code Duration: 12:52 Posted: Aug 2, 2016 Java coding converted to pseudo code. Ask Question Asked 4 years, 8 months ago. Active 1 year, 4 months ago. Viewed 7k times 1. 1. I have to convert this Java code to

Week 4 - Converting pseudocode to Java - part 2, This video translates a very simple program from pseudocode to Java. Comments. Default Duration: 7:51 Posted: Sep 29, 2014 A Java™ to Pseudocode Converter BETA. Toggle navigation PseudoGen. Home; Converter; About //Enter your source code here. It's a Swagato Chatterjee Production

Pseudogen, Pseudogen is a Java™ to Algorithm Converter written specifically for the students of The format of algorithm it generates is called PseudoCode which is an This is the first version of this program all the bugs reported will be addressed in  This video demonstrates how to write a Java program based on a solution described in pseudo-code. Converting pseudo-code to Java code Graham Mansfield. Java Programming - Duration: 34

Java to Pseudocode? - JavaScript, Hi, I'm working on a school project and I'm confused on how to convert a snippet of my code to pseudocode. I've remade the game of  how to convert java code to pseudo code. Jul 24 2017 11:37 PM. Main Class: public class IPath import java.awt.event.ActionListener; import java.io.BufferedReader;

Comments
  • pseudo code is not a programming language. It is a general code where works for all languages. It seems some one write pseudo code for your logic :)
  • To add onto this answer, even your valid Java code, by definition, can be considered pseudocode. Therefore no change is necessary.
  • if in the java program i have initialized a lot of things ( e.g int a , double b) apart from the user input. Do i also need to put it in pseudo code ? if yes what should it be
  • and if i make something in java like if ( ' a ' == ' b ' ) { break; ( mean continue to next loop else it will repeat asking a question) } then what should it be in pseudo code ? Thanks a lot for your help
  • @TranMinhQuang What do you think it should be? Chance are you're probably right in whatever you choose. Like I state in my answer, the point of pseudocode is to describe an algorithm. There is no right or wrong answer as long you're accurately describing what the code is doing.