π
<-

probleme

Programmation et implémentation d'algorithmes.

probleme

Unread postby RYAN31100 » Today, 14:16

Bonjour,

J’ai besoin d’aide, je n’arrive pas à voir mes erreurs sur ma TI-82 Advanced. Est-ce que quelqu’un pourrait m’aider à comprendre ce qui ne va pas ?

Code: Select all
Lbl Z
EffÉcran
Menu(" FINANCE ","FDR",1,"BFR",2,"TN",3,"CAP.ECO",4,"RE",5,"RF",6,"COMMENTAIRES",7,"Suite",Y)

Lbl Y
EffÉcran
Menu(" FINANCE II ","Precedent",Z,"Retour Menu",0)

Lbl 0
Stop

Lbl 1  // FONDS DE ROULEMENT (FDR)
EffÉcran
Disp "FONDS DE ROULEMENT"
Disp "Capitaux propres ?"
Input C
Disp "Emprunts ?"
Input E
Disp "Actif immobilisé ?"
Input A

EffÉcran
Disp "FDR = (", C, "+", E, ") -", A 
Pause  // Laisse voir l’application numérique

(C + E - A)→F  // Calcul du FDR

EffÉcran
Disp "FDR =", F 
Pause

If F > 0
   Then Disp "Solide financiere."
Else
   Disp "Situation fragile !"
End
Pause
Goto Z

Lbl 2  // BESOIN EN FONDS DE ROULEMENT (BFR)
EffÉcran
Disp "BESOIN EN FONDS DE ROULEMENT"
Disp "Stocks ?"
Input S
Disp "Créances clients ?"
Input CC
Disp "Autres créances ?"
Input AC
Disp "Dettes fournisseurs ?"
Input DF
Disp "Autres dettes ?"
Input AD

EffÉcran
Disp "BFR = (", S, "+", CC, "+", AC, ") - (", DF, "+", AD, ")" 
Pause

(S + CC + AC - DF - AD) → B 

EffÉcran
Disp "BFR =", B
Pause

If B > 0
   Then Disp "Financement nécessaire."
Else
   Disp "Bonne gestion de tresorerie."
End
Pause
Goto Z

Lbl 3  // TRESORERIE NETTE (TN)
EffÉcran
Disp "TRESORERIE NETTE"
Disp "Fonds de roulement ?"
Input F
Disp "Besoin en fonds de roulement ?"
Input B

EffÉcran
Disp "TN = ", F, " - ", B 
Pause

(F - B) → T 

EffÉcran
Disp "TN =", T
Pause

If T > 0
   Then Disp "Tresorerie excédentaire."
Else
   Disp "Besoin de financement !"
End
Pause
Goto Z

Lbl 4  // CAPITAL ÉCONOMIQUE
EffÉcran
Disp "CAPITAL ECONOMIQUE"
Disp "Capitaux propres ?"
Input CP
Disp "Dettes financières nettes ?"
Input DFN

EffÉcran
Disp "Capital Éco = ", CP, "+", DFN
Pause

(CP + DFN) → CE

EffÉcran
Disp "Capital Économique =", CE
Pause
Goto Z

Lbl 5  // RENTABILITÉ ÉCONOMIQUE (Re)
EffÉcran
Disp "RENTABILITE ECONOMIQUE"
Disp "Résultat d'exploitation ?"
Input RE
Disp "Capital économique ?"
Input CE

EffÉcran
Disp "Re = (", RE, " / ", CE, ") × 100"
Pause

((RE / CE) × 100) → Re

EffÉcran
Disp "Re =", Re, "%"
Pause

If Re > 10
   Then Disp "Entreprise rentable."
Else
   Disp "Rentabilité faible."
End
Pause
Goto Z

Lbl 6  // RENTABILITÉ FINANCIÈRE (Rf)
EffÉcran
Disp "RENTABILITE FINANCIERE"
Disp "Résultat net ?"
Input RN
Disp "Capitaux propres ?"
Input CP

EffÉcran
Disp "Rf = (", RN, " / ", CP, ") × 100"
Pause

((RN / CP) × 100) → Rf

EffÉcran
Disp "Rf =", Rf, "%"
Pause

If Rf > 12
   Then Disp "Bonne rentabilité pour actionnaires."
Else
   Disp "Rendement faible."
End
Pause
Goto Z

Lbl 7  // COMMENTAIRES
EffÉcran
Menu("COMMENTAIRES","FDR",C1,"BFR",C2,"TN",C3,"CAP.ECO",C4,"RE",C5,"RF",C6,"Retour",Z)

Lbl C1
EffÉcran
Disp "FDR: Représente","la solidité fi."
Disp "Positif -> Stable"
Disp "Négatif -> Risqué"
Pause
Goto 7

Lbl C2
EffÉcran
Disp "BFR: Financement","du cycle d'activité."
Disp "Positif -> Besoin €"
Disp "Négatif -> Bon équilibre"
Pause
Goto 7

Lbl C3
EffÉcran
Disp "TN: Liquidités dispo."
Disp "Positif -> Tréso OK"
Disp "Négatif -> Problème"
Pause
Goto 7

Lbl C4
EffÉcran
Disp "Capital Éco: Total des","ressources engagées."
Pause
Goto 7

Lbl C5
EffÉcran
Disp "Re: Indique si l'activité","est rentable."
Disp "Elevé -> Bonne rentabilité"
Disp "Faible -> Risqué"
Pause
Goto 7

Lbl C6
EffÉcran
Disp "Rf: Rentabilité pour","les actionnaires."
Pause
Goto 7
User avatar
RYAN31100
Niveau 0: MI (Membre Inactif)
Niveau 0: MI (Membre Inactif)
Level up: 0%
 
Posts: 1
Joined: 25 Feb 2025, 09:14
Gender: Not specified
Calculator(s):
MyCalcs profile
Class: Master 2

Re: probleme

Unread postby Adriweb » Today, 14:42

Hello,

J'ai pas testé mais je vois au moins un problème lié aux espaces: il n'en faut pas dans les expressions:
Par exemple ((RN / CP) × 100) → Rf doit être ((RN/CP)×100)→Rf

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
My calculator programs
Mes programmes pour calculatrices
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 79.3%
 
Posts: 14792
Images: 1123
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb


Return to Programmation

Who is online

Users browsing this forum: No registered users and 3 guests

-
Search
-
Social TI-Planet
-
Featured topics
Grand Concours 2024-2025 - Programmation Python
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
12345
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1109 utilisateurs:
>1080 invités
>21 membres
>8 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)