Pseudocode

Answered

Good morning,

 I am a student of web development and as part of my studies I have to learn Pseudocode.

I have the student pack so I can have access to all the software.

I use Intellij IDEA for Java but I don't know how to configure the software for the pseudo code: and at this level I'm really beginner.

Many thank you for your help and your explanations to make a project in speudocode with syntactic coloring.

Have a Nice day.

0
3 comments

Can you give an example task that you need to do with the pseudocode? There is no specific language support for Pseudocode.

You can create your own file type where you define up to 4 types of language keywords, e.g. if/when/then, function/method etc, types of comments and use it for your pseudocode.

0
Avatar
Permanently deleted user

Many thanks Andrey.

This is enclosed an example(on French) : 

-------

                procédure créerliste ( n : entier ;) ;

                   Tab : tableau [1……..N] d’éléments de type t ;

                    j : entier ;

                debproc

                   Pour j allant de 1 à n Faire

                                              { Ecrire ( " Donner la valeur de l’élément numéro :", j ) ;

                                                 Lire ( Tab [j] ; }

                   FinPour

                finproc

----

An other example : Write a code that indicates whether or not a 'val' value provided by the user is in the list

import java.util.Scanner;

public class Test {


public static void main (String arg[]){
System.out.println("Devoir numéro 1 ");

ListElem elem1 = new ListElem(1, null);
ListElem elem2 = new ListElem(4, elem1);
ListElem elem3 = new ListElem(3, elem2);
ListElem elem4 = new ListElem(6, elem3);
ListElem elem5 = new ListElem(5, elem4);
ListElem elem6 = new ListElem(10, elem5);
ListElem elem7 = new ListElem(8, elem6);
ListElem elem8 = new ListElem(9, elem7);
ListElem elem9 = new ListElem(2, elem8);
ListElem maListe = elem9;

afficheListe(maListe);



Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un chiffre :");
int val = sc.nextInt();
System.out.println("Vous avez saisi : " + val);

/* 1) Ecrire un code qui indique si une valeur ‘val’ fournie par l’utilisateur se trouve ou non dans la liste*/
if (contient(maListe, val))
{
System.out.println("la valeur : " + val +" est trouvée dans la liste");
}
else{
System.out.println("la valeur est absente de la liste");
}

}
----
I have done the request with java...Not yet with SpeudoCode.
Many thanks for the links and your help and support.
0

Thanks. So as advised create custom file type for the pseudocode where you may define custom keywords for the pseudocode control flow statements.

0

Please sign in to leave a comment.