How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask ehabtutor Your Own Question

ehabtutor
ehabtutor, Computer Software Engineer
Category: Programming
Satisfied Customers: 1314
Experience:  Bachelor of computer science, 5+ years experience in software development, software company owner
13535664
Type Your Programming Question Here...
ehabtutor is online now
A new question is answered every 9 seconds

hello need a pseudocode personne

Resolved Question:

hello need a pseudocode personne
Submitted: 11 months ago.
Category: Programming
Expert:  ehabtutor replied 11 months ago.

ehabtutor :

Welcome to Just answer. My Name isXXXXX and i will be assisting you today.

ehabtutor :

can you please post the full requirements of the pseudo code needed?

Customer:

hello

ehabtutor :

hi there

ehabtutor :

It would be my pleasure to help you on your assignment

Customer:

Hi I am french so it was hard for me to cut and paste what i did so far

Customer:

I am a student in programming

ehabtutor :

great

ehabtutor :

I hope you are doing well learning programming, and i would love to be your assistant on any upcoming assignments

Customer:

I am doing a program in pseudo code where a client will enter name, first name, address telephone number and a postal code

ehabtutor :

ok and then

Customer:

so My program starts with the usual write "what is your first name" then asign the answer to a "first name variable"

Customer:

the same with adres and the rest

ehabtutor :

ok understood

ehabtutor :

next after reading the input from the user

Customer:

for name, first name and adresse and address I am asked for a validation if there is stuff written then it is validated

Customer:

i did

Customer:

now for the postal code I am asked to validate with an extract fonction in the first position extrait the caractère and then is it a number or a letter

ehabtutor :

so the first letter must be a character

ehabtutor :

then the rest is either a number or a letter right?

Customer:

so i did in my main pseudocode called for the user to enter the postal code then call for a fonction called IsItAPostalCode in which i want to extrait all 6 caractères in orther to check if number or letter alternatively from position 0 to 5 since a postal code has 6 caracteres

Customer:

you are correct

Customer:

in french and may be you can figure out I started like this:

Customer:

FONCTION estCodePostalValide(extraire (CARACTER car, 0, 1))

Customer:

extraire = extract

Customer:

estCodePostalValide = PostalCodeIsValide

Customer:

Iam a bit mixed to know whether i do this six time in 6 different function

Customer:

do I do a boucle for

Customer:

how do I alternate

Customer:

I am not asklee to programme the isitaletter or isit a number those booleen I can just use in the return back to the main program

ehabtutor :

let me check for a minute

ehabtutor :

ok let me tell you this. but let me know if you already studied arrays or not yet

Customer:

not yet

Customer:

It is my first course in programmin

Customer:

g

ehabtutor :

let me explain this strings are already array that you can use loops to iterate through

Customer:

I have seen for boucles, do until,

Customer:

alternative if if-then-else

Customer:

tables in one dimension

Customer:

imbricked ifs

Customer:

coutre in boucles for

ehabtutor :

so i would do it this way. i'll pass the string to the function then i will use for to loop on the six characters and within the loop i would check using if then else if the character is letter or number

Customer:

coutres with for and i++

Customer:

ok

Customer:

so i would do the fonction ispostalcodevalide()

ehabtutor :

yes but pass the variable with the postal code so for example

Customer:

what goes in the parenthèses?

ehabtutor :

ispostalcodevalide(String Postal)

Customer:

caractère car goes in the () right?

ehabtutor :

we will use string instead

ehabtutor :

to pass the whole string to the function

Customer:

caractère is the type ofso in english is string

Customer:

ok

ehabtutor :

no there is a type char

Customer:

STARt

ehabtutor :

which is a single character

Customer:

OK

ehabtutor :

String is an array of characters by default

Customer:

SO:

Customer:

can you help with starting the code please

ehabtutor :

yes

ehabtutor :

i will type it now

Customer:

START

ehabtutor :

ispostalcodevalide(String Postal)

ehabtutor :

For (i=0, i<6 , i++)

ehabtutor :

no i will restart again

ehabtutor :

ispostalcodevalide(String Postal)

ehabtutor :

If ( Postal(0) is not char)

ehabtutor :

then return False

ehabtutor :

For (i=1, i<6, i++)

ehabtutor :

If (Postal(i) is not char) then

ehabtutor :

If (Postal(i) is not number) then

ehabtutor :

return False

ehabtutor :

End If

ehabtutor :

End For

Customer:

I do need to extract

ehabtutor :

what is extract?

Customer:

I need to extrait from the string the position zero take take out the caractère and check if it is a letter

Customer:

then the second one and check if it is a number

ehabtutor :

what i did is use a loop to iterate on the string

ehabtutor :

using postal(0) is the same as extracting

Customer:

the teacher does not ask us to program the is it a number or is it a letter

Customer:

fonction

Customer:

but he wants us to use extract

ehabtutor :

this are not functions it is just an if statement

ehabtutor :

ok we can use extract

ehabtutor :

instead of postal(0)

ehabtutor :

so it will be extract(character, 0)

ehabtutor :

then instead of postal(i) put extract(character,i)

Customer:

yes

ehabtutor :

ok did you get it now, or you want me to re write it for you

Customer:

I need to try if I got it

ehabtutor :

sure go on

Customer:

I get back when done is that it?

ehabtutor :

you can bookmark this page.

ehabtutor :

and you need to use the ratings to leave me a positive rating as this is the only way i get paid

ehabtutor :

are you there?

Customer:

yes

Customer:

I am writing the code

ehabtutor :

ok

Customer:

then going to cut and paste it for you

ehabtutor :

don't forget to rate my answer after you are done

ehabtutor :

sure take your time

Customer:

yes when you will let me know if everything is ok

Customer:

once I pay I want to know that what I did is fine

ehabtutor :

you can paste the code for me here and i will check it and tell you if there are any problems, then you can rate my answer. and if you need any further help after you rate my answer i will continue to help you

Customer:

OK

Customer:

So far in my class all we did was little function and all and now I have to put them with main smaller and intertwine them so that the whole program works my problem I understand the logic steps to what I am doing but I do not know how to actually write it

ehabtutor :

I am here to help you anytime. If you need me just post a question and start it with "**** TO Ehab Tutor Only ***" to make sure it comes to me

ehabtutor :

I know a little french by the way.

Customer:

ok this will take me not just a minute

ehabtutor :

take your time i will be doing some other stuff.

Customer:

can I call you or you call me collect? where would you be calling from

Customer:

can you call me collect it is donna be faster

ehabtutor :

collect what?

Customer:

collect call

ehabtutor :

I am sorry i am not allowed to do so

Customer:

they ask

ehabtutor :

This is as per just answer rules

Customer:

my phone number when i started the chat

Customer:

I will pay no worry

Customer:

I will leave the window opened

Customer:

and then do the top smilleys

ehabtutor :

I understand but i am not allowed to use a phone for conversation, as i am not allowed to exchange any personal data with the client

ehabtutor :

ask me if you want anything

ehabtutor :

you were supposed to write the code and show it to me. what is taking you so long?

Customer:

PROGRAMME PRINCIPAL


CARACTERE prenom, nom, nodetel, adresse, codepostal, bois, Brique, pierre
REEL surface


DEBUT
ECRIRE "Veuillez entrer votre prénom"
LIRE prenom
TANT QUE !(estRempli(prenom)) FAIRE
ECRIRE "Le champs est vide, veuillez entrer votre prénom"
LIRE prenom
FIN TANT QUE
ECRIRE "Veuillez entrer votre nom"
LIRE nom
TANT QUE !(estRempli(nom)) FAIRE
ECRIRE "Le champs est vide, veuillez entrer votre nom"
LIRE nom
FIN TANT QUE
ECRIRE "Veuilles entrer votre adresse"
LIRE adresse
TANT QUE !(estRempli(adresse)) FAIRE
ECRIRE "Le champs est vide, veuillez entrer votre adresse"
LIRE adresse
FIN TANT QUE
ECRIRE "Veuillez entrer votre code postal"
LIRE codepostal
TANT QUE !(estCodePostalValide) FAIRE
ECRIRE "Le code postal n'est pas valide, veuillez essayer de nouveau"
LIRE codepostal
FIN TANT QUE





FONCTION estRempli(CARACTERE chaine)


BOOLEEN resultat
resultat = FAUX
SI chaine != null ALORS
resultat = VRAI
FIN SI
RETOURNER resultat
FIN

Customer:

it is in french

Customer:

Iwrote that so far

Customer:

first is the main

Customer:

first name

Customer:

you don't have the indentation

Customer:

the one starting with function is thé is there something in the field of the name of fist name and address

ehabtutor :

let me check

Customer:

andI do until there is something at this stage the teacher does not ask us more than is there something in the field

Customer:

TANT QUE is DO UNTIL

Customer:

FIN = END

Customer:

DEBUT = START

Customer:

ECRIRE = WRITE

ehabtutor :

:)

Customer:

LIRE = READ OR ASIGN the variable

ehabtutor :

i know a bit of french

ehabtutor :

but thanks anyways

Customer:

Forgot start for the first function

ehabtutor :

yeah i was just going to comment that

ehabtutor :

Faire is ?

Customer:

FONCTION estCodePostalValide(CARACTERE cp)


START
POUR i de 0 à 5 bond de 1 FAIRE
extraire(CARACTERE chaine, i, 1)
SI


 

Customer:

DO

Customer:

POUR i de 0 à 5 bond de 1 is FOR ( i=0, i<6, i++)

ehabtutor :

TANT QUE !(estCodePostalValide(codepostal)) FAIRE
ECRIRE "Le code postal n'est pas valide, veuillez essayer de nouveau"
LIRE codepostal
FIN TANT QUE

ehabtutor :

you forgot to pass the variable codepostal to the function

Customer:

it is done in the main programm

ehabtutor :

yeah i mean in the main program

ehabtutor :

codepostal is missing in the call for the function

Customer:

I call it cp

Customer:

we were told that when we call the fonction

ehabtutor :

I understand you call it cp in the function definition

ehabtutor :

i mean you forgot to pass it to the function call

ehabtutor :

you need to change this line: TANT QUE !(estCodePostalValide) FAIRE

ehabtutor :

to this line: TANT QUE !(estCodePostalValide(codepostal)) FAIRE

Customer:

we use it right after the tant que i put ! in front to say that IF it is not valide tell the user that it is not valid and to enter again a postal code asign it and call the function aagain

ehabtutor :

I really understand

ehabtutor :

please concentrate with me

Customer:

they when in parenthisis it is for CALLING the fonction

Customer:

I hate pseudo code it is too large

ehabtutor :

don't worry just change the line i gave you in the main function

Customer:

oki

ehabtutor :

let me explain it

ehabtutor :

here for example

ehabtutor :

TANT QUE !(estRempli(nom)) FAIRE

ehabtutor :

you are passing the variable nom to the function estRempli

Customer:

I gotit sorry

ehabtutor :

this is the same that i did for the other function

ehabtutor :

everything else in the main function is perfectly ok

Customer:

I forgot to write codepostal

Customer:

hère we go:

Customer:

TANT QUE !(estCodePostalValide(codepostal)) FAIRE
ECRIRE "Le code postal n'est pas valide, veuillez essayer de nouveau"
LIRE codepostal
FIN TANT QUE

ehabtutor :

exactement

Customer:

right?

ehabtutor :

c'est vrai

ehabtutor :

now with the function

Customer:

they tell us to use extrait(CARACTERE chaine, pos i of start, then 1 for the number of caractere to take out of the string)

Customer:

then use

ehabtutor :


FONCTION estCodePostalValide(CARACTERE cp)


START
POUR i de 0 à 5 bond de 1 FAIRE
extraire(CARACTERE chaine, i, 1)
SI


 



Customer:

isitanumber(@a@) return false

ehabtutor :

ok first of all you need to check character 0 before the loop

Customer:

oki

ehabtutor :

since the testing condition is different

ehabtutor :

so you need to do the following

ehabtutor :

extraire(CARACTERE cp, 0, 1)

ehabtutor :

and take care you are using the variable chaine and not cp

ehabtutor :

you need to define a character variable that you assign to the value of this extraire function

ehabtutor :

so for example: caractere a

ehabtutor :

a = extraire(caractere cp,0 ,1)

ehabtutor :

and i think the call should be extrarire(cp, 0,1)

ehabtutor :

are you following?

Customer:

yes

ehabtutor :

great

ehabtutor :

and now you need to do the ischaracter check on the variable a

ehabtutor :

then we will have the loop: POUR i de 1 à 5 bond de 1 FAIRE
extraire(cp, i, 1)
SI

Customer:

they told us we do not need to code the following functions

ehabtutor :

ok then just call the function as you did with extrarire

Customer:

isitanumber("A") return false

Customer:

so I asign the extracted caractere to a variable

ehabtutor :

exactly

ehabtutor :

but you need to check if it is not a character

ehabtutor :

or if this check is sufficient then no problem

Customer:

FONCTION estCodePostalValide(CARACTERE cp)


START
extraire(CARACTERE cp, 0, 1)
LIRE a
SI estUneLettre("a")
RETOURNER Vrai
SINON
RETOURNER FAUX
FIN SI

ehabtutor :

bravoo

Customer:

Do I code this 5 more times

ehabtutor :

no

ehabtutor :

you need now to add the for loop

ehabtutor :

and within the for loop, you need to do 2 checks this time

ehabtutor :

nested ifs

Customer:

after the fist one

ehabtutor :

yeah keep the first part as is, its perfect

ehabtutor :

now next to it you need to have the for loop run from 1 to 5

ehabtutor :

as you already checked character 0

ehabtutor :

you can use this

ehabtutor :

IF ( a is a number or a is a character ) then

ehabtutor :

return vrai

ehabtutor :

else return false

ehabtutor :

this has to be within the for loop, so each time we loop we check those conditions, so in case any of the characters is not a letter or a number it will return false

ehabtutor :

on another though we should use another type of loop than the for loop

ehabtutor :

since once we find a character that is not a letter or a number we should break the loop

ehabtutor :

also you cannot use return vrai in the first part, because we don't want to return once we find the first character is a letter

ehabtutor :

we need to check the rest

ehabtutor :

so rather define a boolean variable

ehabtutor :

and assign to it vrai ou fauz

ehabtutor :

faux

Customer:

FONCTION estCodePostalValide(CARACTERE cp)


START
extraire(CARACTERE cp, 0, 1)
LIRE a
POUR i de 1 à 5 bond de 1 FAIRE
SI estUneLettre("a")
RETOURNER Vrai
SINON
RETOURNER FAUX
FIN SI
FIN POUR

Customer:

a postal code has an order

Customer:

G2B2L! for example

Customer:

the ! is a number

Customer:

G2B2L1

ehabtutor :

no this not right at all

Customer:

shoot

ehabtutor :

FONCTION estCodePostalValide(CARACTERE cp)


START


Caractere a


Boolean Resultant
a= extraire(cp, 0, 1)
Si estUneNombre("a")


Resultant = Faux


Retournet Resultant
POUR i de 1 à 5 bond de 1 FAIRE


a=extraire(cp, i, 1)


 


SI estUneLettre("a") or estUneNombre("a")
Resultant = Vrai
SINON
Resultant = Faux


Retournant Resultant
FIN SI
FIN POUR


 

ehabtutor :

this is the correct one

ehabtutor :

did you get it?

Customer:

Yes I think by looking it over it will be fine

Customer:

not assimilated it yet but

Customer:

should be ok

ehabtutor :

just re type the french words

Customer:

the only thing is that a postal code has an order

ehabtutor :

hmmm

Customer:

letter nimber, letter, number, letter, number

ehabtutor :

in this case you won't be using a loop

ehabtutor :

you will have to check them one by one

ehabtutor :

as we did with the first one

Customer:

allright tThat is why I did ask if I did that 5 more times

ehabtutor :

Boolean Resultant
a= extraire(cp, 0, 1)
Si estUneNombre("a")


Resultant = Faux


Retournet Resultant

ehabtutor :

yes but you will return only if it is false

Customer:

no "FOR"

ehabtutor :

you cannot return if it is vrai

ehabtutor :

yes no for in this case

Customer:

when I go bak to my main

Customer:

at some point in time

Customer:

I have to see that let's ay I altérante with

Customer:

isitaletter

Customer:

vrai

Customer:

istitanumber vra

Customer:

if 6 vrai then the message is postal code valide

ehabtutor :

if no faux then its for sure vrai

Customer:

lol

ehabtutor :

you don't need to check if it is right.

ehabtutor :

you just need to check if any character doesn't go with the rule

ehabtutor :

a= extraire(cp, 0, 1)
Si estUneNombre("a")


Retournet Faux


a= extraire(cp,1,1)


Si estUneLetter("a")


Retournet Faux

ehabtutor :

and so on

ehabtutor :

did you get it?

Customer:

ONCTION estCodePostalValide(CARACTERE cp)


START
CARACTERE a
BOOLEEN resulat
resultat = Faux
extraire(CARACTERE cp, 0, 1)
LIRE a
SI estUneLettre("a")
RETOURNER Vrai
SINON
RETOURNER FAUX
FIN SI
extraire(CARACTERE cp, 1, 1)
LIRE a
SI estUnNombre("a")
RETOURNER Vrai
SINON
RETOURNER FAUX
FIN SI
extraire(CARACTERE cp, 2, 1)
LIRE a
SI estUneLettre("a")
RETOURNER Vrai
SINON
RETOURNER FAUX
FIN SI
extraire(CARACTERE cp, 3, 1)
LIRE a
SI estUnNombre("a")
RETOURNER Vrai
SINON
RETOURNER FAUX
FIN SI
extraire(CARACTERE cp, 4, 1)
LIRE a
SI estUneLettre("a")
RETOURNER Vrai
SINON
RETOURNER FAUX
FIN SI
extraire(CARACTERE cp, 3, 1)
LIRE a
SI estUnNombre("a")
RETOURNER Vrai
SINON
RETOURNER FAUX
FIN SI

Customer:

the last one is 5

ehabtutor :

you don't use retourner vrai

ehabtutor :

did you check my last post

ehabtutor :

also lire a, is reading a from the user, which is not the case

ehabtutor :

we are returning the value of the extract function into the variable a

ehabtutor :

that's why i use a =extract ...

ehabtutor :

are you there?

Customer:

yes

ehabtutor :

This was my last post:


a= extraire(cp, 0, 1)
Si estUneNombre("a")


Retournet Faux


a= extraire(cp,1,1)


Si estUneLetter("a")


Retournet Faux

Customer:

trying to understand the only return false by stating at first that it is false so it is like using a simple if with no else right

ehabtutor :

you can alter this a bit by having the variable Resultant and set it initially to vrai

ehabtutor :

Boolean Resultant = vrai

Customer:

i am getting close i need to understand what i am doing

ehabtutor :

if any of the conditions are false the function will return immediatley

ehabtutor :

the only point i was missing is if all is ok we have to return vrai for the condition to be met

ehabtutor :

so we can have the Boolean Resultant =vrai

ehabtutor :

and have a retournat resultant at the end of the function

ehabtutor :

and within each if have Resultant = faux Retournet Resultant

ehabtutor :

did you get it this way

Customer:

FONCTION estCodePostalValide(CARACTERE cp)


CARACTERE a
BOOLEEN resultat
resultat = FAUX
DEBUT
extraire(CARACTERE cp, 0, 1)
LIRE a
SI estUneLettre("a")
RETOURNER Vrai
FIN SI
extraire(CARACTERE cp, 1, 1)
LIRE a
SI estUnNombre("a")
RETOURNER Vrai
FIN SI
extraire(CARACTERE cp, 2, 1)
LIRE a
SI estUneLettre("a")
RETOURNER Vrai
FIN SI
extraire(CARACTERE cp, 3, 1)
LIRE a
SI estUnNombre("a")
RETOURNER Vrai
FIN SI
extraire(CARACTERE cp, 4, 1)
LIRE a
SI estUneLettre("a")
RETOURNER Vrai
FIN SI
extraire(CARACTERE cp, 5, 1)
LIRE a
SI estUnNombre("a")
RETOURNER Vrai
FIN SI
FIN

Customer:

i alternat from letter and nombre

Customer:

at the end of the if

ehabtutor :

:(

ehabtutor :

you don't read my comments

Customer:

When i do all the return vrai

ehabtutor :

you cannot return vrai, this means that once you will find the first letter is ok, you will return and not check the rest

ehabtutor :

its the other way aroung

ehabtutor :

around

Customer:

i am to do quick sorry

ehabtutor :

please concentrate

Customer:

do your stuff i am looking

Customer:

yes

Customer:

5 minutes

ehabtutor :

FONCTION estCodePostalValide(CARACTERE cp)


CARACTERE a
BOOLEEN resultat
resultat = Vrai
DEBUT
a = extraire(CARACTERE cp, 0, 1)
SI estUneNombre("a")


resultat = Faux
RETOURNER resultat
FIN SI
a= extraire(CARACTERE cp, 1, 1)
SI estUnLettre("a")
resultat = Faux
RETOURNER resultat
FIN SI
a = extraire(CARACTERE cp, 2, 1)
SI estUneNombre("a")
resultat = Faux
RETOURNER resultat
FIN SI
a = extraire(CARACTERE cp, 3, 1)
SI estUnLettre("a")
resultat = Faux
RETOURNER resultat
FIN SI
a = extraire(CARACTERE cp, 4, 1)
SI estUneNombre("a")
resultat = Faux
RETOURNER resultat
FIN SI
a = extraire(CARACTERE cp, 5, 1)
SI estUnLettre("a")
resultat = Faux
RETOURNER resultat
FIN SI
FIN

ehabtutor :

Here you are this is the correct version

Customer:

FONCTION estCodePostalValide(CARACTERE cp)


CARACTERE a
BOOLEEN resultat
resultat = FAUX
DEBUT
extraire(CARACTERE cp, 0, 1)
LIRE a
SI estUneLettre("a")
resultat = Vrai
FIN SI
RETOURNER resulat
extraire(CARACTERE cp, 1, 1)
LIRE a
SI estUnNombre("a")
resultat = Vrai
FIN SI
RETOURNER resulat
extraire(CARACTERE cp, 2, 1)
LIRE a
SI estUneLettre("a")
resultat = Vrai
FIN SI
RETOURNER resulat
extraire(CARACTERE cp, 3, 1)
LIRE a
SI estUnNombre("a")
resultat = Vrai
FIN SI
RETOURNER resulat
extraire(CARACTERE cp, 4, 1)
LIRE a
SI estUneLettre("a")
resultat = Vrai
FIN SI
RETOURNER resulat
extraire(CARACTERE cp, 5, 1)
LIRE a
SI estUnNombre("a")
resultat = Vrai
FIN SI
RETOURNER resulat
FIN

Customer:

no oui the return resultat is before the fin si

ehabtutor :

can't understand what you mean really

Customer:

I was trying to hurry the ''RETOURNER résultat" goes before each FIN SI

ehabtutor :

FONCTION estCodePostalValide(CARACTERE cp)


CARACTERE a
BOOLEEN resultat
resultat = Vrai
DEBUT
a = extraire(CARACTERE cp, 0, 1)
SI estUneNombre("a")


resultat = Faux
RETOURNER resultat
FIN SI
a= extraire(CARACTERE cp, 1, 1)
SI estUnLettre("a")
resultat = Faux
RETOURNER resultat
FIN SI
a = extraire(CARACTERE cp, 2, 1)
SI estUneNombre("a")
resultat = Faux
RETOURNER resultat
FIN SI
a = extraire(CARACTERE cp, 3, 1)
SI estUnLettre("a")
resultat = Faux
RETOURNER resultat
FIN SI
a = extraire(CARACTERE cp, 4, 1)
SI estUneNombre("a")
resultat = Faux
RETOURNER resultat
FIN SI
a = extraire(CARACTERE cp, 5, 1)
SI estUnLettre("a")
resultat = Faux
FIN SI
FIN

Customer:

now in my main

ehabtutor :

FONCTION estCodePostalValide(CARACTERE cp)


CARACTERE a
BOOLEEN resultat
resultat = Vrai
DEBUT
a = extraire(CARACTERE cp, 0, 1)
SI estUneNombre("a")


resultat = Faux
RETOURNER resultat
FIN SI
a= extraire(CARACTERE cp, 1, 1)
SI estUnLettre("a")
resultat = Faux
RETOURNER resultat
FIN SI
a = extraire(CARACTERE cp, 2, 1)
SI estUneNombre("a")
resultat = Faux
RETOURNER resultat
FIN SI
a = extraire(CARACTERE cp, 3, 1)
SI estUnLettre("a")
resultat = Faux
RETOURNER resultat
FIN SI
a = extraire(CARACTERE cp, 4, 1)
SI estUneNombre("a")
resultat = Faux
RETOURNER resultat
FIN SI
a = extraire(CARACTERE cp, 5, 1)
SI estUnLettre("a")
resultat = Faux


FIN SI


RETOURNER resultat


FIN


 

ehabtutor :

this is the one, i moved the last retourner befor the last fin

ehabtutor :

to return in all cases

ehabtutor :

You don't need to do anything in the main

Customer:

my main is allright because if not a valid postal code

Customer:

need to give the message to try again and enter a valid one

ehabtutor :

let me double check

ehabtutor :

yes its ok this way, since it checks if not true

Customer:

my main is allright as long as initially résultat is initialized true?

ehabtutor :

i got confused

Customer:

I will be all right so do I rate now

ehabtutor :

yes please, A bonus will also be highly appreciated. I spent more than 2 hours with you

Customer:

I know I am very greatful

ehabtutor :

If you need any help in upcoming assignments , just post "To Ehab TUtor Only" at the start of your question

ehabtutor :

and i will be there for you

Customer:

it is just that writing takes lon that is why I did suggest the collect call

ehabtutor :

wouldn't have been easy with coding

ehabtutor :

writing code is much more convinient

Customer:

after reading week we do JAVA I am in web programming integration

ehabtutor :

I can help you in Java, vb, c sharp , c++ and database questions

ehabtutor :

as well as pseudo code of course

Customer:

I am nearly fifty got super grades so far but as I said I understand the logic of the programme it is the writing

ehabtutor :

I am sure you will do well

Customer:

a bit more touche I like the languages because you if it works but pseudo codes is larger

Customer:

my teacher is difficult

Customer:

Thank you

ehabtutor :

You're welcome anytime

Customer:

can I cut and paste some of it

Customer:

so I can get back to it

ehabtutor :

you can bookmark the whole chat

ehabtutor :

so you can open it anytime. it won't be removed

Customer:

thank you

ehabtutor :

have a wonderful day

Customer:

i put the highest smile how do i proceed with bonus cause it says the chat will close

ehabtutor :

use the ratings under the answer to do the rating, you will then be prompted to add bonus which will be appreciated

Customer:

thank you

ehabtutor, Computer Software Engineer
Category: Programming
Satisfied Customers: 1314
Experience: Bachelor of computer science, 5+ years experience in software development, software company owner
ehabtutor and 7 other Programming Specialists are ready to help you

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
< Last | Next >
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
 
 
 

Meet The Experts:

 
 
 
  • ATLPROG

    Computer Software Engineer

    Satisfied Customers:

    7463
    MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
< Last | Next >
  • http://ww2.justanswer.com/uploads/SP/spatlanta2010/2011-6-23_12450_photo.64x64.gif ATLPROG's Avatar

    ATLPROG

    Computer Software Engineer

    Satisfied Customers:

    7463
    MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Computer Software Engineer

    Satisfied Customers:

    5603
    Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
  • http://ww2.justanswer.com/uploads/unvadim/2010-11-15_210218_avatar.jpg unvadim's Avatar

    unvadim

    Computer Software Engineer

    Satisfied Customers:

    1158
    Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.
  • http://ww2.justanswer.com/uploads/lifesaver333/2010-10-17_191349_ls.jpeg lifesaver's Avatar

    lifesaver

    Computer Software Engineer

    Satisfied Customers:

    950
    Several years of intensive programming and application development experience in various platforms.
  • http://ww2.justanswer.com/uploads/EH/ehabtutor/2012-8-2_202016_1.64x64.jpg ehabtutor's Avatar

    ehabtutor

    Computer Software Engineer

    Satisfied Customers:

    864
    Bachelor of computer science, 5+ years experience in software development, software company owner
  • http://ww2.justanswer.com/uploads/RA/rajivsharma086/2012-6-6_17128_displaypic.64x64.jpg Raj's Avatar

    Raj

    Computer Engg.

    Satisfied Customers:

    860
    BE CS, 4+ Experience in Programming and Database (ERP)
  • http://ww2.justanswer.com/uploads/eljonis/2010-01-06_130406_eljon2.jpg Eljon's Avatar

    Eljon

    Consultant

    Satisfied Customers:

    590
    11 yrs of programming (PHP, WordPress, XSL, SQL, JavaScript)