-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProf2000.java
More file actions
27 lines (21 loc) · 835 Bytes
/
Copy pathProf2000.java
File metadata and controls
27 lines (21 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import java.util.Scanner;
import java.util.Random;
class Prof2000{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
System.out.println("Est ce que le TP à évaluer a été manifestement fait par une IA alors que c'était interdit ? oui/non");
String reponse = sc.next();
if(reponse.equalsIgnoreCase("oui")){
Random rand = new Random();
System.out.println("Hum... Le TP vaut un " + (rand.nextInt(5)+4) + "/20.");
System.out.println("Merci d'avoir utiliser prof2000.");
System.exit(0);
}
if(reponse.equalsIgnoreCase("non")){
System.out.println("Bah va l'évaluer toi-même feignasse de fonctionnaire !");
System.exit(0);
}
System.out.println("Je ne comprends pas ta réponse.\nVa apprendre à lire et écrire espèce d'imbécile !");
System.exit(0);
}
}