From 0e1a11cb2344fec53d24b76e6de80575bfbd9166 Mon Sep 17 00:00:00 2001 From: Moncef STITI Date: Wed, 21 Feb 2024 17:27:07 +0100 Subject: [PATCH] Ajout d'exo et de TP --- .../CM1/.vscode/c_cpp_properties.json | 0 .../{ => DEV1.1}/CM1/.vscode/launch.json | 0 .../{ => DEV1.1}/CM1/.vscode/settings.json | 0 BUT1/CONTROLE/{ => DEV1.1}/CM1/exo1.c | 0 BUT1/CONTROLE/{ => DEV1.1}/CM1/exo2.c | 0 BUT1/CONTROLE/{ => DEV1.1}/CM1/exo3.c | 0 BUT1/CONTROLE/{ => DEV1.1}/CM1/exo4.c | 0 BUT1/CONTROLE/{ => DEV1.1}/CM1/exo5.c | 0 BUT1/CONTROLE/{ => DEV1.1}/CM3/exo1/exo1.c | 0 BUT1/CONTROLE/{ => DEV1.1}/CM3/exo1/image.pgm | 0 BUT1/CONTROLE/{ => DEV1.1}/CM3/exo2/exo2.c | 0 BUT1/CONTROLE/{ => DEV1.1}/CM3/exo3/exo3.c | 0 BUT1/CONTROLE/{ => DEV1.1}/controle.md | 0 BUT1/CONTROLE/{ => DEV1.1}/stiti_CM1.tar.gz | Bin BUT1/CONTROLE/{ => DEV1.1}/stiti_CM3.tar.gz | Bin .../Entrainement/SUJETA/EXO1/Monnaie.class | Bin 0 -> 942 bytes .../Entrainement/SUJETA/EXO1/Monnaie.java | 16 +++++++++++++++ .../TP5-Heritage/EXO1/Documentation.class | Bin 0 -> 472 bytes .../TP5-Heritage/EXO1/Documentation.java | 19 ++++++++++++++++++ BUT1/DEV2.1/TP5-Heritage/EXO1/reponses.txt | 6 ++++++ 20 files changed, 41 insertions(+) rename BUT1/CONTROLE/{ => DEV1.1}/CM1/.vscode/c_cpp_properties.json (100%) rename BUT1/CONTROLE/{ => DEV1.1}/CM1/.vscode/launch.json (100%) rename BUT1/CONTROLE/{ => DEV1.1}/CM1/.vscode/settings.json (100%) rename BUT1/CONTROLE/{ => DEV1.1}/CM1/exo1.c (100%) rename BUT1/CONTROLE/{ => DEV1.1}/CM1/exo2.c (100%) rename BUT1/CONTROLE/{ => DEV1.1}/CM1/exo3.c (100%) rename BUT1/CONTROLE/{ => DEV1.1}/CM1/exo4.c (100%) rename BUT1/CONTROLE/{ => DEV1.1}/CM1/exo5.c (100%) rename BUT1/CONTROLE/{ => DEV1.1}/CM3/exo1/exo1.c (100%) rename BUT1/CONTROLE/{ => DEV1.1}/CM3/exo1/image.pgm (100%) rename BUT1/CONTROLE/{ => DEV1.1}/CM3/exo2/exo2.c (100%) rename BUT1/CONTROLE/{ => DEV1.1}/CM3/exo3/exo3.c (100%) rename BUT1/CONTROLE/{ => DEV1.1}/controle.md (100%) rename BUT1/CONTROLE/{ => DEV1.1}/stiti_CM1.tar.gz (100%) rename BUT1/CONTROLE/{ => DEV1.1}/stiti_CM3.tar.gz (100%) create mode 100644 BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Monnaie.class create mode 100644 BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Monnaie.java create mode 100644 BUT1/DEV2.1/TP5-Heritage/EXO1/Documentation.class create mode 100644 BUT1/DEV2.1/TP5-Heritage/EXO1/Documentation.java create mode 100644 BUT1/DEV2.1/TP5-Heritage/EXO1/reponses.txt diff --git a/BUT1/CONTROLE/CM1/.vscode/c_cpp_properties.json b/BUT1/CONTROLE/DEV1.1/CM1/.vscode/c_cpp_properties.json similarity index 100% rename from BUT1/CONTROLE/CM1/.vscode/c_cpp_properties.json rename to BUT1/CONTROLE/DEV1.1/CM1/.vscode/c_cpp_properties.json diff --git a/BUT1/CONTROLE/CM1/.vscode/launch.json b/BUT1/CONTROLE/DEV1.1/CM1/.vscode/launch.json similarity index 100% rename from BUT1/CONTROLE/CM1/.vscode/launch.json rename to BUT1/CONTROLE/DEV1.1/CM1/.vscode/launch.json diff --git a/BUT1/CONTROLE/CM1/.vscode/settings.json b/BUT1/CONTROLE/DEV1.1/CM1/.vscode/settings.json similarity index 100% rename from BUT1/CONTROLE/CM1/.vscode/settings.json rename to BUT1/CONTROLE/DEV1.1/CM1/.vscode/settings.json diff --git a/BUT1/CONTROLE/CM1/exo1.c b/BUT1/CONTROLE/DEV1.1/CM1/exo1.c similarity index 100% rename from BUT1/CONTROLE/CM1/exo1.c rename to BUT1/CONTROLE/DEV1.1/CM1/exo1.c diff --git a/BUT1/CONTROLE/CM1/exo2.c b/BUT1/CONTROLE/DEV1.1/CM1/exo2.c similarity index 100% rename from BUT1/CONTROLE/CM1/exo2.c rename to BUT1/CONTROLE/DEV1.1/CM1/exo2.c diff --git a/BUT1/CONTROLE/CM1/exo3.c b/BUT1/CONTROLE/DEV1.1/CM1/exo3.c similarity index 100% rename from BUT1/CONTROLE/CM1/exo3.c rename to BUT1/CONTROLE/DEV1.1/CM1/exo3.c diff --git a/BUT1/CONTROLE/CM1/exo4.c b/BUT1/CONTROLE/DEV1.1/CM1/exo4.c similarity index 100% rename from BUT1/CONTROLE/CM1/exo4.c rename to BUT1/CONTROLE/DEV1.1/CM1/exo4.c diff --git a/BUT1/CONTROLE/CM1/exo5.c b/BUT1/CONTROLE/DEV1.1/CM1/exo5.c similarity index 100% rename from BUT1/CONTROLE/CM1/exo5.c rename to BUT1/CONTROLE/DEV1.1/CM1/exo5.c diff --git a/BUT1/CONTROLE/CM3/exo1/exo1.c b/BUT1/CONTROLE/DEV1.1/CM3/exo1/exo1.c similarity index 100% rename from BUT1/CONTROLE/CM3/exo1/exo1.c rename to BUT1/CONTROLE/DEV1.1/CM3/exo1/exo1.c diff --git a/BUT1/CONTROLE/CM3/exo1/image.pgm b/BUT1/CONTROLE/DEV1.1/CM3/exo1/image.pgm similarity index 100% rename from BUT1/CONTROLE/CM3/exo1/image.pgm rename to BUT1/CONTROLE/DEV1.1/CM3/exo1/image.pgm diff --git a/BUT1/CONTROLE/CM3/exo2/exo2.c b/BUT1/CONTROLE/DEV1.1/CM3/exo2/exo2.c similarity index 100% rename from BUT1/CONTROLE/CM3/exo2/exo2.c rename to BUT1/CONTROLE/DEV1.1/CM3/exo2/exo2.c diff --git a/BUT1/CONTROLE/CM3/exo3/exo3.c b/BUT1/CONTROLE/DEV1.1/CM3/exo3/exo3.c similarity index 100% rename from BUT1/CONTROLE/CM3/exo3/exo3.c rename to BUT1/CONTROLE/DEV1.1/CM3/exo3/exo3.c diff --git a/BUT1/CONTROLE/controle.md b/BUT1/CONTROLE/DEV1.1/controle.md similarity index 100% rename from BUT1/CONTROLE/controle.md rename to BUT1/CONTROLE/DEV1.1/controle.md diff --git a/BUT1/CONTROLE/stiti_CM1.tar.gz b/BUT1/CONTROLE/DEV1.1/stiti_CM1.tar.gz similarity index 100% rename from BUT1/CONTROLE/stiti_CM1.tar.gz rename to BUT1/CONTROLE/DEV1.1/stiti_CM1.tar.gz diff --git a/BUT1/CONTROLE/stiti_CM3.tar.gz b/BUT1/CONTROLE/DEV1.1/stiti_CM3.tar.gz similarity index 100% rename from BUT1/CONTROLE/stiti_CM3.tar.gz rename to BUT1/CONTROLE/DEV1.1/stiti_CM3.tar.gz diff --git a/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Monnaie.class b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Monnaie.class new file mode 100644 index 0000000000000000000000000000000000000000..a11dce71704454224634eec353f151d524f3b16a GIT binary patch literal 942 zcmZ`%TTj$b5dO~I+AZa_2q=PCAjHU%xrO{`@!ra1W0Sj9|*ZRZQnGgKHYD8^~Zv zho$VS$`qA%Lmf8_+`^oWc@?&GENCccSY*g;3Ms-T3~77e4MS$zZ*qp=s*wCy)N1hH zmDBJjl4&_YGECU-s|U`JQ}!IWU#^FNkoy}7I9LxI_e0HT_v($h9|bPo6$)(Dd?_8l zR}|F5C<+>uOe|wXL)pY_++mpfx9wIWye1DAMinPZMlBwQj}f=lEfcG_Ymx}}mG{8J zL#%0dWMUl~3`V`vYWQAKxQR7}xf%~#VKwK4Y^oN46-jO#IUbJ!Yv(O>EbhGCD>7(3 zq6{Oabe=a3xEnGQ;!qR{ue==v0hexvVPKz!6?qss(xo4@?F-aNLT7NqvTs1Wa~Sd# zt-z0H%y?2S{PGJ@HzbX@(;`65X}7s-GA#dpNZ(d^@)2-|DAF!TJvZ4dt-8W6ZC4h~ zu{}lUp`Wam;gWs6kou0rdYt7+61Ej zkY!}ErDL$KEtt>meQ-$#qUVfz9Ib+nRmy?7IIx^ zOI_$);3qw?<=BDDgMd 0){ + String nom_monnaie = args[0]; + Currency monnaie = Currency.getInstance(nom_monnaie); + System.out.println("Code numerique : "+monnaie.getNumericCode()); + System.out.println("Symbole : "+ monnaie.getSymbol()); + }else{ + System.out.println("Merci d'indiquer une valeur EX : \"EUR\""); + } + + } +} \ No newline at end of file diff --git a/BUT1/DEV2.1/TP5-Heritage/EXO1/Documentation.class b/BUT1/DEV2.1/TP5-Heritage/EXO1/Documentation.class new file mode 100644 index 0000000000000000000000000000000000000000..64cf13179eda5197282e77491098377340a5d936 GIT binary patch literal 472 zcmZWlT}uK%6g}gv&bqCwA8DUfzNtY%^k(!@1PfAu;Y&}W4Km`+$~qhLv+ALuhkigm zD!Qu=BF(`4Jm=1t`}6zt4d5IN7diNO6j5?fM#aSzsvI?rZHC;1(#l*iSk2ae!M=)~ zB!k~mTHYq%P{t2pIHigm3Z)rp&BxwEJd4g$=y9iSVx`C3l<4-OBp%5dm4eIH(I^R} zHo~Y#pQZ#491h2hhh6M(?0Yyso#W8M5sn!OYYc|s>XEzQM2^f_ssA!JG9=AWLXGND zk%~I^B*%~_DZ(y8X*DCzMvi67;LJokmz1Vo`Tvuk6);p5y!CMme3lNM(hlrq&>EnD zEUh&?8BiAv**s-+@{D}8{Q>q$0qurtZdoMA20V&W=n1Sv)qg{#ZJiaJPgw7;S0tBa O1DkYx0v0IFVDk?eRAQ(A literal 0 HcmV?d00001 diff --git a/BUT1/DEV2.1/TP5-Heritage/EXO1/Documentation.java b/BUT1/DEV2.1/TP5-Heritage/EXO1/Documentation.java new file mode 100644 index 0000000..18a7f4b --- /dev/null +++ b/BUT1/DEV2.1/TP5-Heritage/EXO1/Documentation.java @@ -0,0 +1,19 @@ +import java.lang.Object; +import java.lang.Number; +import java.lang.Integer; + +public class Documentation{ + public static void main(String args[]){ + + /* Programme qui convertie les arguments en majuscule + for(String element : args){ + System.out.println(element.toUpperCase()); + } + */ + + + int chiffrEnInt = Integer.parseInt(args[0],8); + String truc = toString(toString(chiffrEnInt,10)); + System.out.println(toString(truc,16)); + } +} \ No newline at end of file diff --git a/BUT1/DEV2.1/TP5-Heritage/EXO1/reponses.txt b/BUT1/DEV2.1/TP5-Heritage/EXO1/reponses.txt new file mode 100644 index 0000000..e338985 --- /dev/null +++ b/BUT1/DEV2.1/TP5-Heritage/EXO1/reponses.txt @@ -0,0 +1,6 @@ +Voici les réponses de la question n°1 (Documentation) : + +- On trouve la classe String dans le package java.lang. +- Elle hérite de la classe Object. +- 5 méthodes sont transmises par la classe mère (INFORMATION PAS SUR) +-