Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. package be.industriele_ict.oefeningen.taken;
  2.  
  3. /**
  4. * A N A L Y S E
  5. * =============
  6. * ABSTRACTE PROBLEEMSTELLING (= vraag van de klant)
  7. * sorteer kunstoffen
  8. *
  9. * CONCRETE PROBLEEMSTELLING (= ondubbelzinnige omschrijving van de vraag van de klant ==> algoritme)
  10. * Sorteer de 8 kunststoffen
  11. * zorg dat ze in de juiste zak belanden
  12. *
  13. * CHECKLIST VOOR TEST-INGENIEUR
  14. * 01 Sorteerd het de kunststoffen.
  15. * 02 Zet het ze in de juiste zak
  16. *
  17. * PARAMETERS SENSOREN
  18. * Naam | Omschrijving | Bereik | Gegevenstype
  19. * -------------------------|---------------------------------------------------|-------------------|-------------
  20. * | | |
  21. * soortKunststof | Welke kunststof is het |0..8 | byte > int
  22. *
  23. * PARAMETERS ACTUATOREN
  24. * Naam | Omschrijving | Bereik | Gegevenstype
  25. * -------------------------|---------------------------------------------------|-------------------|-------------
  26. * | | |
  27. *
  28. * PARAMETERS VERWERKING
  29. * Naam | Omschrijving | Bereik | Gegevenstype
  30. * -------------------------|---------------------------------------------------|-------------------|-------------
  31. * petNum | Is het pet |0..8 | byte > int
  32. * hdpeNum | Is het hdpe |0..8 | byte > int
  33. * pvcNum | Is het pvc |0..8 | byte > int
  34. * ldpeNum | Is het ldpe |0..8 | byte > int
  35. * ppNum | Is het pp |0..8 | byte > int
  36. * psNum | Is het ps |0..8 | byte > int
  37. * otherNum | Is het other |0..8 | byte > int
  38. * absNum | Is het abs |0..8 | byte > int
  39. */
  40.  
  41. public class Taak_Kunststoffen {
  42.  
  43.  
  44.  
  45. public static void main(String[] args) {
  46.  
  47. int soortKunststof = 0;
  48.  
  49. int petNum = 0;
  50. int hdpeNum = 1;
  51. int pvcNum = 2;
  52. int ldpeNum = 3;
  53. int ppNum = 4;
  54. int psNum = 5;
  55. int otherNum = 7;
  56. int absNum = 6;
  57.  
  58. if(soortKunststof == 0)
  59. {
  60. System.out.println("soortKunststof = " + soortKunststof + " Het moet in de blauwe zak.");
  61. }
  62. else
  63. {
  64. if(soortKunststof == 1)
  65. {
  66. System.out.println("soortKunststof = " + soortKunststof + " Het moet in de blauwe zak.");
  67. }
  68. else
  69. {
  70. if(soortKunststof == 2)
  71. {
  72. System.out.println("soortKunststof = " + soortKunststof + " Het moet in de roze zak.");
  73. }
  74. else
  75. {
  76. if(soortKunststof == 3)
  77. {
  78. System.out.println("soortKunststof = " + soortKunststof + " Het moet in de roze zak.");
  79. }
  80. else
  81. {
  82. if(soortKunststof == 4)
  83. {
  84. System.out.println("soortKunststof = " + soortKunststof + " Het moet in de roze zak.");
  85. }
  86. else
  87. {
  88. if(soortKunststof == 5)
  89. {
  90. System.out.println("soortKunststof = " + soortKunststof + " Het moet in de roze zak.");
  91. }
  92. else
  93. {
  94. if(soortKunststof == 6)
  95. {
  96. System.out.println("soortKunststof = " + soortKunststof + " Het moet in de roze zak.");
  97. }
  98. else
  99. {
  100. if(soortKunststof == 7)
  101. {
  102. System.out.println("soortKunststof = " + soortKunststof + " Het moet in de roze zak.");
  103. }
  104. }
  105. }
  106. }
  107. }
  108. }
  109. }
  110. }
  111.  
  112.  
  113.  
  114.  
  115.  
  116. }
  117.  
  118. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement