Advertisement
Guest User

Profesor-PeticionesRuegos

a guest
Nov 30th, 2015
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.92 KB | None | 0 0
  1. // En profesor, una vez que empieza el tema de las peticiones y los ruegos
  2.  
  3. int noQuierenPreguntar=0;
  4. int estanSatisfechos=0;
  5. while((noQuierenPreguntar+estanSatisfechos)<20)
  6. {
  7.     blockingReceive(/* Mensaje de alumno */)
  8.     if(/* Contenido del mensaje == "noPreguntoMas" */) noQuierenPreguntar++;
  9.     if(/* Contenido del mensaje == "conforme" */) estanSatisfechos++;
  10.     if(/* En el contenido del mensaje se dice algo tipo "el alumno x se cambia por el alumno z") // Cambio a los 2 alumnos de grupo en mi tabla
  11. }
  12.  
  13. noQuierenPreguntar=0;
  14. estanSatisfechos=0;
  15. while((noQuierenPreguntar+estanSatisfechos)<20)
  16. {
  17.     blockingReceive(/* Mensaje de alumno */)
  18.     if(/* Contenido del mensaje == "noPreguntoMas" */) noQuierenPreguntar++;
  19.     if(/* Contenido del mensaje == "conforme" */) estanSatisfechos++;
  20.     if(/* En el contenido del mensaje se dice algo tipo "el alumno x se cambia por el alumno z") // Cambio a los 2 alumnos de grupo en mi tabla
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement