Algorithmique: utilisation du logiciel Algobox

Publié le 18 janv. 2012 il y a 12A par Anonyme - Fin › 25 janv. 2012 dans 12A
5

Sujet du devoir

Avec cet algorithme la je recherche combien fais x et je dois faire avec ce même algorithme l inverse il faut: écrire l'algorithme permettant, en partant du nombre affiché, de retrouver le nombre choisi initialement.

VARIABLE
x EST_DU_TYPE NOMBRE
y EST_DU_TYPE NOMBRE
z EST_DU_TYPE NOMBRE
w EST_DU_TYPE NOMBRE
DEBUT ALGORITHME
Afficher "entrer la valeur de x"
LIRE x
AFFICHER x
y PREND_LA_VALEUR x+1
z PREND_LA_VALEUR 2*y
w PREND_LA_VALEUR z-3
AFFICHER "l'image de"
Afficher x
Afficher "est"
Afficher w

Où j'en suis dans mon devoir

donc j'ai fais sa comme changement:
VARIABLE
x EST_DU_TYPE NOMBRE
y EST_DU_TYPE NOMBRE
z EST_DU_TYPE NOMBRE
w EST_DU_TYPE NOMBRE
DEBUT ALGORITHME
Afficher "entrer la valeur de w"
LIRE w
AFFICHER w
y PREND_LA_VALEUR x+1
z PREND_LA_VALEUR 2*y
w PREND_LA_VALEUR z-3
AFFICHER "l'image de"
Afficher w
Afficher "est"
Afficher x
Mais au niveau de je sais pas quel changements faire:
y PREND_LA_VALEUR x+1
z PREND_LA_VALEUR 2*y
w PREND_LA_VALEUR z-3
Et je ne suis pas sur que le reste des changement vont



1 commentaire pour ce devoir


Anonyme
Posté le 18 janv. 2012
D'accord mercide votre aide

Ils ont besoin d'aide !

Il faut être inscrit pour aider

Crée un compte gratuit pour aider

Je m'inscrisOU

J'ai déjà un compte

Je me connecte