BTS SIO B - Semaine 50 du lundi 11 décembre au vendredi 15 décembre.
Lundi 11 décembre 2023 - B1D T.P.
13 heures 45 --> 15 heures 40 - Groupe 1
- Seconde séance : rendre la monnaie.
15 heures 55 --> 17 heures 45 - Certification - Groupe 1
Mardi 12 décembre 2023
Conception & développement d'applications.
8 heures 45 - B1D TP - Groupe 1
- Séance pour terminer vos T.P.s.
10 heures 45 - B1D TP - Groupe 2
- Séance pour terminer vos T.P.s.
Jeudi 14 décembre 2023
13 heures 40 - B1D
Exemples :
<?php
public class MyClass {
public static void main(java.lang.String[] args) {
// Insert code to start the application here.
int i = 3;
int j = 0;
try {
System.out.println("résultat = " + (i / j));
} catch (ArithmeticException e) {
System.out.println("Erreur de type Arithmétique\n");
}
}
}
<?php
import java.util.Scanner;
public class Kaprekarv1 {
public static void main(String args[]) {
int Val = 0;
do {Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un nombre :");
Val = sc.nextInt();
System.out.println("Vous avez saisi le nombre : " + Val);
} while(Val>999 || Val<100);
System.out.println("Fin du programme !");
}
}
<?php
public class MyClass {
public static void tri (int [] tableau) {
System.out.println(tableau);
}
public static void main(String[] args) {
int [] Tab = { 127 , 3 , 77};
tri(Tab);
for(int i = 0 ; i < Tab.length ; i = i + 1) {
System.out.println ("tableau(" + i + ") = " + Tab[i]);
}
}
}
<?php
public class MyClass {
public static void tri (int [] tableau) {
int temp;
for (int i = 0 ; i < tableau.length - 1 ; i++) {
if (tableau[i] > tableau[i+1] ) {
temp = tableau[i];
tableau[i] = tableau[i+1];
tableau[i+1] = temp;
}
}
}
public static void main(String[] args) {
int [] Tab = { 127, 3 , 77, 54, 29, 31, 8};
for (int j = Tab.length ; j > 0 ; j = j -1 ) {
for(int i = 0 ; i < j ; i = i + 1) {
tri(Tab);
}
System.out.println("*********************");
}
for(int i = 0 ; i < Tab.length ; i = i + 1) {
System.out.println ("tableau(" + i + ") = " + Tab[i]);
}
}
}