Вы находитесь на странице: 1из 21

Anne scolaire 2015-2016

Dure 2h00. Tous documents autoriss.


Enseignants : KONAN HYACINTHE

JAVA ORIENTE RESEAUX


Devoir surveill N2 (TP)

NOM DE LETUDIANT : KOUTOUAN ADON JOSEPH

Enonc :
Dveloppez une application client-serveur permettant de donner des exercices aux tudiants sous
forme de questions choix multiple.
Le client essaie de se connecter un serveur (de port 8888 de notre ordinateur).
Le serveur affiche le message suivant : "Quel est votre nom ?"
Le client rpond en saisissant son non (exemple KONAN)
Le serveur affiche le premier exercice sous la forme :

Question N1 : Quelle est la capitale politique de la cote dIvoire ?


Choisissez la bonne rponse :
1 Abidjan
2 Bouak
3 Man
4 Yamoussoukro

Le serveur attend la rponse du client et effectue un certain service (Affiche : "Bravo vous avez
trouv" lorsque le client a saisi le numro de la bonne rponse, et "Dsol" dans le cas contraire)
lorsquil en accepte un.
Ainsi de suite jusqu la Question N10
A la fin de lexamen, le serveur affiche la note du client sous la forme :
"M. KONAN vous avez obtenu 8/10"

N.B : Chaque rponse juste est note sur 1 point.

1/2
Compltez les prototypes ci-dessous.

import java.io.*;
import java.net.*;
public class QCMClient
{
public static void main(String[] args) throws IOException
{

final int SQUARE_PORT = 8888;


Socket s;
InputStream in;
OutputStream out;
BufferedReader reader;
PrintWriter writer;
String commande;
String reponse;
String nom;
InputStreamReader fich;
BufferedReader tampon;
String entree;
s = new Socket("localhost", SQUARE_PORT);
in = s.getInputStream();
out = s.getOutputStream();
reader = new BufferedReader(new InputStreamReader(in));
writer = new PrintWriter(out);
fich = new InputStreamReader(System.in);
tampon = new BufferedReader(fich);
System.out.print("Quelle est votre nom: ");
nom= tampon.readLine();

//debut QCM

System.out.print("question 1:");
System.out.println("Quelle est la capitale politique de la cote
dIvoire ?");
System.out.println("Choisissez la bonne rponse :");
System.out.println("1- Abidjan");
System.out.println("2- Bouak");
System.out.println("3- Man");
System.out.println("4- Yamoussoukro");
System.out.print("reponse :");
entree = tampon.readLine();

commande = entree + "\n";


System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.print(reponse +". tapez suivant pour continuer:");
entree = tampon.readLine();
commande = entree + "\n";
2/2
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();

while (reponse.equals("Vous devez taper suivant pour continuer !!!"))


{
System.out.print(reponse);
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
}

if (reponse.equals("question 2:"))
{
System.out.println(reponse);
System.out.println("O a t cre la premire cole officielle
franaise de la Cte d'Ivoire ? :");
System.out.println("Choisissez la bonne rponse :");
System.out.println("1- Bonoua");
System.out.println("2- Elima");
System.out.println("3- Grand bassam");
System.out.println("4- No");
System.out.print("reponse :");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.print(reponse +". tapez suivant pour continuer:");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
}

while (reponse.equals("Vous devez taper suivant pour continuer !!!!"))


{
System.out.print(reponse);
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
3/2
writer.flush();
reponse = reader.readLine();
}

if (reponse.equals("question 3:"))
{
System.out.println(reponse);
System.out.println("Combien y a-t-il de groupes ethniques en Cte
d'Ivoire ? :");
System.out.println("Choisissez la bonne rponse :");
System.out.println("1- 8");
System.out.println("2- 4");
System.out.println("3- 2");
System.out.println("4- 6");
System.out.print("reponse :");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.print(reponse +". tapez suivant pour continuer:");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.println(reponse);
}

while (reponse.equals("Vous devez taper suivant pour continuer !!!"))


{
System.out.print(reponse);
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
}

if (reponse.equals("question 4:"))
{
System.out.println("Combien de communes denombre t-on en cte
d'ivoire ? ");
System.out.println("Choisissez la bonne rponse :");
System.out.println("1- 1000 communes");
System.out.println("2- 528 communes ");
System.out.println("3- 1200 communes");
System.out.println("4- 1126 communes");
System.out.print("reponse :");
entree = tampon.readLine();
commande = entree + "\n";
4/2
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.print(reponse +". tapez suivant pour continuer:");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
}

while (reponse.equals("Vous devez taper suivant pour continuer !!!!"))


{
System.out.print(reponse);
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
}

if (reponse.equals("question 5:"))
{
System.out.println(reponse);
System.out.println("Combien de districts compte la cte d'ivoire ?
:");
System.out.println("Choisissez la bonne rponse :");
System.out.println("1- 10 districts");
System.out.println("2- 19 districts");
System.out.println("3- 12 districts");
System.out.println("4- 21 districts");
System.out.print("reponse :");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.print(reponse +". tapez suivant pour continuer:");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.println(reponse);
}

5/2
while (reponse.equals("Vous devez taper suivant pour continuer !!!!"))
{
System.out.print(reponse);
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
}

if (reponse.equals("question 6:"))
{
System.out.println(reponse);
System.out.println("Quel est le plus long fleuve de la cte
d'ivoire ?:");
System.out.println("Choisissez la bonne rponse :");
System.out.println("1- Bandama ");
System.out.println("2- Sassandra");
System.out.println("3- Cavally");
System.out.println("4- Como");
System.out.print("reponse :");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.print(reponse +". tapez suivant pour continuer:");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.println(reponse);
}

while (reponse.equals("Vous devez taper suivant pour continuer !!!!"))


{
System.out.print(reponse);
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
}

if (reponse.equals("question 7:"))
{
6/2
System.out.println(reponse);
System.out.println("La cte d'ivoire est le premier pays Africain
producteur en :");
System.out.println("Choisissez les bonnes rponses :");
System.out.println("1- cacao");
System.out.println("2- Acajou ");
System.out.println("3- caf");
System.out.println("4- Riz ");
System.out.print("reponse :");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.print(reponse +". tapez suivant pour continuer:");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.println(reponse);
}

while (reponse.equals("Vous devez taper suivant pour continuer !!!!"))


{
System.out.print(reponse);
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
}

if (reponse.equals("question 8:"))
{
System.out.println(reponse);
System.out.println("O rencontre-t-on la fort dense en Cte
d'Ivoire ? :");
System.out.println("Choisissez la bonne rponse :");
System.out.println("1- sud");
System.out.println("2- sud-est");
System.out.println("3- sud-ouest");
System.out.println("4- sud et ouest");
System.out.print("reponse :");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
7/2
reponse = reader.readLine();
System.out.print(reponse +". tapez suivant pour continuer:");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.println(reponse);
}

while (reponse.equals("Vous devez taper suivant pour continuer !!!!"))


{
System.out.print(reponse);
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
}

if (reponse.equals("question 9:"))
{
System.out.println(reponse);
System.out.println("En quelle anne est dcd Flix Houphout-
Boigny, premier prsident du pays ? :");
System.out.println("Choisissez la bonne rponse :");
System.out.println("1- 1992");
System.out.println("2- 1993");
System.out.println("3- 1994");
System.out.println("4- 1991");
System.out.print("reponse :");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.print(reponse +". tapez suivant pour continuer:");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.println(reponse);
}

while (reponse.equals("Vous devez taper suivant pour continuer !!!!"))


{
8/2
System.out.print(reponse);
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
}

if (reponse.equals("question 10:"))
{
System.out.println(reponse);
System.out.println("Quel animal est reprsent sur les armoiries
du pays? :");
System.out.println("Choisissez la bonne rponse :");
System.out.println("1- Une girafe");
System.out.println("2- Un buffle ");
System.out.println("3- Un oiseau ");
System.out.println("4- Un elephant");
System.out.print("reponse :");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.print(reponse +".FIN ");
entree = tampon.readLine();
commande = entree + "\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
reponse = reader.readLine();
System.out.println(reponse);
}

commande = "QUIT\n";
System.out.print("Envoi : " + commande);
writer.print(commande);
writer.flush();
s.close();

}
} // fin du QCMClient

9/2
import java.io.*; import java.net.*;
public class QCMServer
{ public static void main(String[] args) throws IOException
{ final int SQUARE_PORT = 8888;
ServerSocket server;
Socket s;
server = new ServerSocket(SQUARE_PORT);
System.out.println("En attente de client...");
while(true)
{ s = server.accept();
QCMService service = new QCMService(s);
service.start();
}
}
}

10/2
import java.io.*; import java.net.*;
class QCMService extends Thread
{ private Socket s;
public QCMService(Socket aSocket){ s = aSocket; }
public void run(){
try
{
BufferedReader in = new BufferedReader(
new InputStreamReader(s.getInputStream()));
PrintWriter out = new PrintWriter(s.getOutputStream());
String entree;
String reponse = null;
String reponsefinale = null;
int n=0,m=0,k=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;
//reception de la donne entre par l'utilisateur
entree = in.readLine();

//on teste la donne


while(! (entree.equals("QUIT") || entree == null))
{
int a=0;
System.out.println("Recu : " + entree);
n = Integer.parseInt(entree);
if (n==4)
{
a = 1;
reponse= "Bravo vous avez trouv!";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}
else if(n!=4)
{
a = 0;
reponse= "Dsol !";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}

System.out.println("Recu : " + entree);

while (! entree.equals("suivant"))
{
reponse= "Vous devez taper suivant pour continuer !!!";

11/2
System.out.print("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

if (entree.equals("suivant"))
{
reponse = "question 2:";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

//if (entree.equals("b"))
m = Integer.parseInt(entree);
if (m==2)
{
a = a+1;
reponse= "Bravo vous avez trouv!";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}
else if(m!=2)
{
a = a;
reponse= "Dsol !";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}
// if (entree.equals("QUIT")) s.close();

System.out.println("Recu : " + entree);

while (! entree.equals("suivant"))
{
reponse= "Vous devez taper suivant pour continuer !!!";
System.out.print("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

12/2
//on pose les instructions qui suivent le respect de la condition
if (entree.equals("suivant"))
{
reponse = "question 3:";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

k = Integer.parseInt(entree);
if (k==2)
{
a = a+1;
reponse= "Bravo vous avez trouv!";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}
else
{
a = a;
reponse= "Dsol !";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}

//entree = in.readLine();
System.out.println("Recu : " + entree);

while (! entree.equals("suivant"))
{
reponse= "Vous devez taper suivant pour continuer !!!";
System.out.print("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

13/2
if (entree.equals("suivant"))
{
reponse = "question 4:";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

p = Integer.parseInt(entree);
if (p==4)

{
a = a+1;
reponse= "Bravo vous avez trouv!";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}
else
{
a = a;
reponse= "Dsol !";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}
// entree = in.readLine();
System.out.println("Recu : " + entree);

while (! entree.equals("suivant"))
{
reponse= "Vous devez taper suivant pour continuer !!!";
System.out.print("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

if (entree.equals("suivant"))
{
reponse = "question 5:";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
14/2
System.out.println("Recu : " + entree);

q = Integer.parseInt(entree);
if (q==3)
{
a = a+1;
reponse= "Bravo vous avez trouv!";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}
else
{
a = a;
reponse= "Dsol !";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}
//entree = in.readLine();
System.out.println("Recu : " + entree);

while (! entree.equals("suivant"))
{
reponse= "Vous devez taper suivant pour continuer !!!";
System.out.print("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

if (entree.equals("suivant"))
{
reponse = "question 6:";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

}
r = Integer.parseInt(entree);
if (r==4)
{
a = a+1;
reponse= "Bravo vous avez trouv!";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
15/2
yield();
entree = in.readLine();
}
else
{
a = a;
reponse= "Dsol !";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}
//entree = in.readLine();
System.out.println("Recu : " + entree);

while (! entree.equals("suivant"))
{
reponse= "Vous devez taper suivant pour continuer !!!";
System.out.print("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

if (entree.equals("suivant"))
{
reponse = "question 7:";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

}
s = Integer.parseInt(entree);
if (s==123 || s==132 || s==213 || s==231 || s==312 || s==321)
{
a = a+1;
reponse= "Bravo vous avez trouv!";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}
else
{
a = a;
16/2
reponse= "Dsol!";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}
// entree = in.readLine();
System.out.println("Recu : " + entree);

while (! entree.equals("suivant"))
{
reponse= "Vous devez taper suivant pour continuer !!!";
System.out.print("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

if (entree.equals("suivant"))
{
reponse = "question 8:";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

}
t = Integer.parseInt(entree);
if (t==4)
{
a = a+1;
reponse= "Bravo vous avez trouv!";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}
else
{
a = a;
reponse= "Dsol !";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}
System.out.println("Recu : " + entree);

while (! entree.equals("suivant"))
{
reponse= "Vous devez taper suivant pour continuer !!!";
System.out.print("Envoye : " + reponse);
17/2
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

if (entree.equals("suivant"))
{
reponse = "question 9:";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

}
u = Integer.parseInt(entree);
if (u==2)
{
a = a+1;
reponse= "Bravo vous avez trouv!";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}
else
{
a = a;
reponse= "Dsol !";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
}
//entree = in.readLine();
System.out.println("Recu : " + entree);

while (! entree.equals("suivant"))
{
reponse= "Vous devez taper suivant pour continuer !!!";
System.out.print("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

if (entree.equals("suivant"))
{
reponse = "question 10:";
System.out.println("Envoye : " + reponse);
out.println(reponse);
18/2
out.flush();
yield();
entree = in.readLine();
System.out.println("Recu : " + entree);

v = Integer.parseInt(entree);
if (v==4)
{
a = a+1;
reponse= "Bravo vous avez trouv! tape sur" +
" n'importe quelle touche pour terminer et
recevoir" +
"ta note";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
}
else
{
a = a;
reponse= "Dsol ! tape sur" +
" n'importe quelle touche pour terminer et
recevoir" +
"ta note";
System.out.println("Envoye : " + reponse);
out.println(reponse);
out.flush();
yield();
}

switch (a)
{
case 1:
reponsefinale= "ta note finale est "+ a+"/10. pas bon
du tout" +
"va reprendre tout le cours pour t'amliorer
et reviens!" +
"OK !";
System.out.println("Envoye : " + reponsefinale);
out.println(reponsefinale);
out.flush();
yield();
break;
case 2:
reponsefinale= "ta note finale est "+ a+"/10. ce n'est
pas bon!!!" +
"va reprendre tout le cours pour amliorer
ton niveau et reviens!" +
"OK !";
System.out.println("Envoye : " + reponsefinale);
out.println(reponsefinale);
out.flush();
yield();
break;
case 3:
19/2
reponsefinale= "ta note finale est "+ a+"/10. ce n'est
pas bon !!!" +
"va reprendre tout le cours et reviens!" +
"OK !";
System.out.println("Envoye : " + reponsefinale);
out.println(reponsefinale);
out.flush();
yield();
break;
case 4:
reponsefinale= "ta note finale est "+ a+"/10. encore un
petit effort " +
"va reviser ton cours et reviens vite jouer!"
;

System.out.println("Envoye : " + reponsefinale);


out.println(reponsefinale);
out.flush();
yield();
break;
case 5:
reponsefinale= "ta note finale est "+ a+"/10. passable
!!! " +
"peux mieux faire" ;
System.out.println("Envoye : " + reponsefinale);
out.println(reponsefinale);
out.flush();
yield();
break;

case 6:
reponsefinale= "ta note finale est "+ a+"/10. passable
!!! " +
"peux mieux faire si tu pousse loin" ;

System.out.println("Envoye : " + reponsefinale);


out.println(reponsefinale);
out.flush();
yield();
break;

case 7:
reponsefinale= "ta note finale est "+ a+"/10. assez
bien !!! " +
"peux mieux faire" +
"juste une petite revision et c'est ok " ;

System.out.println("Envoye : " + reponsefinale);


out.println(reponsefinale);
out.flush();
yield();
break;

case 8:
reponsefinale= "ta note finale est "+ a+"/10. bien !!!
" +
"peux mieux faire" +
20/2
"juste une petite revision et c'est ok " ;
System.out.println("Envoye : " + reponsefinale);
out.println(reponsefinale);
out.flush();
yield();
break;

case 9:
reponsefinale= "ta note finale est "+ a+"/10. tres bien
!!! " +
"tu maitrises entirement tes cours" +
"continue comme ca !!";
System.out.println("Envoye : " + reponsefinale);
out.println(reponsefinale);
out.flush();
yield();
break;

case 10:
reponsefinale= "ta note finale est "+ a+"/10. excellent
!!! " +

"tu maitrises entirement tes cours" +


"bonne chance pour l'examen !!!";
System.out.println("Envoye : " + reponsefinale);
out.println(reponsefinale);
out.flush();
yield();
break;

}//fin du switch

}//fin du while global

catch(IOException e)
{

}//fin du QCMService

21/2

Вам также может понравиться

  • Chapitre 6.Htm
    Chapitre 6.Htm
    Документ6 страниц
    Chapitre 6.Htm
    konan franck
    Оценок пока нет
  • Comnum
    Comnum
    Документ39 страниц
    Comnum
    konan franck
    Оценок пока нет
  • Interrogation Trans-FO ESATIC Master-RTEL 2015-2016 N°1
    Interrogation Trans-FO ESATIC Master-RTEL 2015-2016 N°1
    Документ1 страница
    Interrogation Trans-FO ESATIC Master-RTEL 2015-2016 N°1
    konan franck
    Оценок пока нет
  • Ts Srit3 Esatic
    Ts Srit3 Esatic
    Документ37 страниц
    Ts Srit3 Esatic
    konan franck
    Оценок пока нет
  • Chapitre 7.Htm
    Chapitre 7.Htm
    Документ17 страниц
    Chapitre 7.Htm
    konan franck
    Оценок пока нет
  • La Fibre Optique
    La Fibre Optique
    Документ53 страницы
    La Fibre Optique
    هشام درياس
    100% (4)
  • Theorie Du Signal
    Theorie Du Signal
    Документ127 страниц
    Theorie Du Signal
    ibadiop
    100% (4)
  • Chapitre 5.Htm
    Chapitre 5.Htm
    Документ11 страниц
    Chapitre 5.Htm
    konan franck
    Оценок пока нет
  • Chapitre 2.Htm
    Chapitre 2.Htm
    Документ8 страниц
    Chapitre 2.Htm
    konan franck
    Оценок пока нет
  • Certification Fibre Optique
    Certification Fibre Optique
    Документ5 страниц
    Certification Fibre Optique
    konan franck
    Оценок пока нет
  • Catalogue
    Catalogue
    Документ27 страниц
    Catalogue
    konan franck
    Оценок пока нет
  • Big Data
    Big Data
    Документ49 страниц
    Big Data
    konan franck
    Оценок пока нет
  • Chapitre 1.Htm
    Chapitre 1.Htm
    Документ8 страниц
    Chapitre 1.Htm
    konan franck
    Оценок пока нет
  • SlidesCM ProcessAlea 02oct2013 Etud1 2PP
    SlidesCM ProcessAlea 02oct2013 Etud1 2PP
    Документ23 страницы
    SlidesCM ProcessAlea 02oct2013 Etud1 2PP
    konan franck
    Оценок пока нет
  • Middleware Orientés Messages: I.T Is Open
    Middleware Orientés Messages: I.T Is Open
    Документ92 страницы
    Middleware Orientés Messages: I.T Is Open
    konan franck
    Оценок пока нет
  • Blockchains Et Smart Contracts Des Technologies de La Confiance
    Blockchains Et Smart Contracts Des Technologies de La Confiance
    Документ129 страниц
    Blockchains Et Smart Contracts Des Technologies de La Confiance
    konan franck
    Оценок пока нет
  • Theorie Du Signal
    Theorie Du Signal
    Документ127 страниц
    Theorie Du Signal
    ibadiop
    100% (4)
  • Ou Le Flot Maximum Minimise La Flottepowerpoint
    Ou Le Flot Maximum Minimise La Flottepowerpoint
    Документ19 страниц
    Ou Le Flot Maximum Minimise La Flottepowerpoint
    konan franck
    Оценок пока нет
  • TD2R1 - Sujet À Coroter
    TD2R1 - Sujet À Coroter
    Документ3 страницы
    TD2R1 - Sujet À Coroter
    konan franck
    Оценок пока нет
  • Theorie Du Signal
    Theorie Du Signal
    Документ127 страниц
    Theorie Du Signal
    ibadiop
    100% (4)
  • Middle Ware
    Middle Ware
    Документ17 страниц
    Middle Ware
    konan franck
    Оценок пока нет
  • 070 Rmi PDF
    070 Rmi PDF
    Документ37 страниц
    070 Rmi PDF
    konan franck
    Оценок пока нет
  • 070 Rmi PDF
    070 Rmi PDF
    Документ37 страниц
    070 Rmi PDF
    konan franck
    Оценок пока нет
  • Theorie Du Signal
    Theorie Du Signal
    Документ10 страниц
    Theorie Du Signal
    konan franck
    Оценок пока нет
  • La Fibre Optique
    La Fibre Optique
    Документ53 страницы
    La Fibre Optique
    هشام درياس
    100% (4)
  • Cours1-Middleware PourEleves
    Cours1-Middleware PourEleves
    Документ14 страниц
    Cours1-Middleware PourEleves
    konan franck
    Оценок пока нет
  • Middleware Orientés Messages: I.T Is Open
    Middleware Orientés Messages: I.T Is Open
    Документ92 страницы
    Middleware Orientés Messages: I.T Is Open
    konan franck
    Оценок пока нет
  • Ofm 2012 2013 Envoi2 Corrige PDF
    Ofm 2012 2013 Envoi2 Corrige PDF
    Документ10 страниц
    Ofm 2012 2013 Envoi2 Corrige PDF
    konan franck
    Оценок пока нет
  • ITSBMath 2014
    ITSBMath 2014
    Документ12 страниц
    ITSBMath 2014
    konan franck
    Оценок пока нет
  • Ofm 2012 2013 Envoi2
    Ofm 2012 2013 Envoi2
    Документ3 страницы
    Ofm 2012 2013 Envoi2
    konan franck
    Оценок пока нет
  • Ds Big Data Hachani
    Ds Big Data Hachani
    Документ7 страниц
    Ds Big Data Hachani
    Mohamed Amine Hachani
    Оценок пока нет
  • BIG DATA Et R
    BIG DATA Et R
    Документ6 страниц
    BIG DATA Et R
    Šməì Ĺĕ
    Оценок пока нет
  • Replication Des Donnees Dans Le Cloud Computing
    Replication Des Donnees Dans Le Cloud Computing
    Документ73 страницы
    Replication Des Donnees Dans Le Cloud Computing
    hadile
    Оценок пока нет
  • Blockchain
    Blockchain
    Документ2 страницы
    Blockchain
    Sana KOCHBATI
    Оценок пока нет
  • Lab2 Hdfs
    Lab2 Hdfs
    Документ9 страниц
    Lab2 Hdfs
    Maryâm Bôuch
    Оценок пока нет
  • TD Synchronisation Corrigé
    TD Synchronisation Corrigé
    Документ9 страниц
    TD Synchronisation Corrigé
    safe selmi
    Оценок пока нет
  • Algorithme Sur Les Fichiers
    Algorithme Sur Les Fichiers
    Документ1 страница
    Algorithme Sur Les Fichiers
    arc gooft
    Оценок пока нет
  • Chapitre 2 - HDFS
    Chapitre 2 - HDFS
    Документ23 страницы
    Chapitre 2 - HDFS
    hiba
    Оценок пока нет
  • Partie 3
    Partie 3
    Документ18 страниц
    Partie 3
    FERDAOUS ZAIDIA
    Оценок пока нет
  • Voyage en Biochimie PDF
    Voyage en Biochimie PDF
    Документ76 страниц
    Voyage en Biochimie PDF
    martin jack
    100% (1)
  • CRYPTOCURRENCY
    CRYPTOCURRENCY
    Документ15 страниц
    CRYPTOCURRENCY
    lucy pedro
    Оценок пока нет
  • Lexique - GP
    Lexique - GP
    Документ11 страниц
    Lexique - GP
    Lu Lar
    Оценок пока нет
  • k8s - Kubernetes
    k8s - Kubernetes
    Документ20 страниц
    k8s - Kubernetes
    Iman khayati
    Оценок пока нет
  • Forsage FR
    Forsage FR
    Документ13 страниц
    Forsage FR
    Riana Ramahatra
    100% (1)
  • ED7 Avec Corrige
    ED7 Avec Corrige
    Документ11 страниц
    ED7 Avec Corrige
    ÎkrãmPrëtty
    Оценок пока нет
  • Id Cloud Computing Corrige v2
    Id Cloud Computing Corrige v2
    Документ8 страниц
    Id Cloud Computing Corrige v2
    jbihisalma
    Оценок пока нет
  • Devoir Cloud Openstack Ci Isbd s9
    Devoir Cloud Openstack Ci Isbd s9
    Документ2 страницы
    Devoir Cloud Openstack Ci Isbd s9
    sami Dylan
    Оценок пока нет
  • Chapitre 2
    Chapitre 2
    Документ32 страницы
    Chapitre 2
    Jugurta Mahammed
    Оценок пока нет
  • Systemes Repartis
    Systemes Repartis
    Документ86 страниц
    Systemes Repartis
    hamza ajili
    100% (4)
  • SysDist 03
    SysDist 03
    Документ100 страниц
    SysDist 03
    Raja Bs
    Оценок пока нет
  • Blockchain
    Blockchain
    Документ13 страниц
    Blockchain
    Za Ka Ria
    Оценок пока нет
  • Parasitologie Fiches Pratiques
    Parasitologie Fiches Pratiques
    Документ188 страниц
    Parasitologie Fiches Pratiques
    dr_joe23
    100% (1)
  • Le Réseau P2P
    Le Réseau P2P
    Документ9 страниц
    Le Réseau P2P
    alikacili
    Оценок пока нет
  • Systemes Repartisreparti PDF
    Systemes Repartisreparti PDF
    Документ174 страницы
    Systemes Repartisreparti PDF
    z
    Оценок пока нет
  • 4 - Chapitre 3.1
    4 - Chapitre 3.1
    Документ14 страниц
    4 - Chapitre 3.1
    maryem.benali
    Оценок пока нет
  • Mbds Big Data Hadoop Cours 1
    Mbds Big Data Hadoop Cours 1
    Документ113 страниц
    Mbds Big Data Hadoop Cours 1
    gridech
    Оценок пока нет
  • Cours 1
    Cours 1
    Документ14 страниц
    Cours 1
    TABSOBA
    Оценок пока нет
  • Dba3 Handout
    Dba3 Handout
    Документ372 страницы
    Dba3 Handout
    Oumar Barry
    Оценок пока нет
  • TP 3 - MongoDB
    TP 3 - MongoDB
    Документ10 страниц
    TP 3 - MongoDB
    Marcos Miranda
    Оценок пока нет
  • 5 Technologie Des NFT
    5 Technologie Des NFT
    Документ18 страниц
    5 Technologie Des NFT
    IO IO
    Оценок пока нет