Advertisement
S4T3K

Untitled

Oct 18th, 2013
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.73 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. int main()
  6. {
  7. int vision = 0;
  8. int tempselectro = 0;
  9. int pepbdevue = 0;
  10. int heure = 0;
  11. {
  12. printf("Hello. Ce programme va t'aider a evaluer ta vue\n\n");
  13. printf("Tout d'abord, tu t'evaluerais comment ?\n\n");
  14. printf("Tapez 1 pour mauvais, 2 pour correct, 3 pour bon et 4 pour excellent.\n\n");
  15. scanf("%d", &vision);
  16.  
  17. switch(vision)
  18. {
  19. case 1:
  20. printf("Tu �values ta vue comme mauvaise.\n\n");
  21. do
  22. {
  23. printf("Combien de temps par jour vas-tu sur ton ordinateur ou utilises-tu ton telephone portable ?\n");
  24. printf("Entre 1 et 3h, tape 1, entre 3 et 6h, tape 2, plus de 6h tape 3\n\n");
  25. scanf("%d", &tempselectro);
  26. if(tempselectro == 1)
  27. {
  28. printf("Je suis desole pour toi mais tu es ne avec une deficience visuelle\n");
  29. return 1;
  30. }
  31. else if(tempselectro == 2)
  32. {
  33. printf("Repose toi un peu plus et limite toi pour passer a 1\n");
  34. printf("C'est le seul conseil valable");
  35. return 1;
  36. }
  37. else if(tempselectro == 3)
  38. {
  39. printf("Deja, merci d'avoir ete honnete. Maintenant, tu vas...");
  40. printf("ETEINDRE TON PC ET NE PLUS Y TOUCHER PENDANT 2 SEMAINES ENTIERES !");
  41. return 1;
  42. }
  43. else
  44. {
  45. printf("Bon bah tu sais pas repondre. 1, 2 ou 3 ?");
  46. printf("Je te repose la question, cette fois tu sais quoi repondre");
  47. return 1;
  48. }
  49. }
  50. while(tempselectro != 1 || 2 || 3);
  51. break;
  52.  
  53. case 2:
  54. printf("Tu evalues ta vue comme correcte\n");
  55. printf("Es-tu ne avec un probleme de vue ?\n");
  56. printf("Tape 1 pour Oui, et 2 pour Non\n\n");
  57. scanf("%d", &pepbdevue);
  58. do
  59. {
  60. if(pepbdevue == 1)
  61. {
  62. printf("Vas voir un opticien, il pourra t'aider.");
  63. return 1;
  64. }
  65. else if(pepbdevue == 2)
  66. {
  67. printf("Alors ralentis ton rythme d'electronique renoi");
  68. return 1;
  69. }
  70. else
  71. {
  72. printf("Tu sais pas repondre ? 1 ou 2 ?\n\n");
  73. printf("Je te repose la question, reponds-y bien cette fois.");
  74. }
  75.  
  76. }
  77. while(pepbdevue != 1 || 2);
  78. break;
  79.  
  80. case 3:
  81. printf("Tu evaleus ta vue comme bonne. Felicitations.");
  82. printf("On va faire un test.\n");
  83. printf("Mets ton ecran de pc a 3m de toi et essaye de lire l'heure.\n");
  84. printf("Joue le jeu par contre hein :p\n\n\n");
  85. printf("Alors, tu y arrives ?");
  86. printf("Tape 1 pour Oui et 2 pour Non !");
  87. scanf("%d", &heure);
  88. do
  89. {
  90. if(heure == 1)
  91. {
  92. printf("Ok. Donc ta vue est bonne en effet");
  93. printf("Malheureusement, on ne peut pas ameliorer sa vue naturelle.\n\n");
  94. printf("Desole");
  95. return 1;
  96. }
  97. else if(heure == 2)
  98. {
  99. printf("Donc ta vue n'est pas bonne. \nRecommence le test en prenant l'option correcte.");
  100. return 1;
  101. }
  102. else
  103. {
  104. printf("Tu sais pas repondre ? 1 ou 2 ?\n\n");
  105. printf("Je te repose la question, reponds-y bien cette fois.");
  106. }
  107.  
  108. }
  109. while(heure != 1 || 2);
  110. break;
  111.  
  112. case 4:
  113. printf("Tres bien. Tu peux fermer ce programme jeune arrogant !");
  114. break;
  115. }
  116. }
  117. return 0;
  118. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement