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 0000000..a11dce7 Binary files /dev/null and b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Monnaie.class differ diff --git a/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Monnaie.java b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Monnaie.java new file mode 100644 index 0000000..a1496a3 --- /dev/null +++ b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Monnaie.java @@ -0,0 +1,16 @@ +import java.lang.Object; +import java.util.Currency; + +public class Monnaie{ + public static void main(String args[]){ + if(args.length > 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 0000000..64cf131 Binary files /dev/null and b/BUT1/DEV2.1/TP5-Heritage/EXO1/Documentation.class differ 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) +-