Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package be.industriele_ict.oefeningen.taken;
- /**
- * A N A L Y S E
- * =============
- * ABSTRACTE PROBLEEMSTELLING (= vraag van de klant)
- * sorteer kunstoffen
- *
- * CONCRETE PROBLEEMSTELLING (= ondubbelzinnige omschrijving van de vraag van de klant ==> algoritme)
- * Sorteer de 8 kunststoffen
- * zorg dat ze in de juiste zak belanden
- *
- * CHECKLIST VOOR TEST-INGENIEUR
- * 01 Sorteerd het de kunststoffen.
- * 02 Zet het ze in de juiste zak
- *
- * PARAMETERS SENSOREN
- * Naam | Omschrijving | Bereik | Gegevenstype
- * -------------------------|---------------------------------------------------|-------------------|-------------
- * | | |
- * soortKunststof | Welke kunststof is het |0..8 | byte > int
- *
- * PARAMETERS ACTUATOREN
- * Naam | Omschrijving | Bereik | Gegevenstype
- * -------------------------|---------------------------------------------------|-------------------|-------------
- * | | |
- *
- * PARAMETERS VERWERKING
- * Naam | Omschrijving | Bereik | Gegevenstype
- * -------------------------|---------------------------------------------------|-------------------|-------------
- * petNum | Is het pet |0..8 | byte > int
- * hdpeNum | Is het hdpe |0..8 | byte > int
- * pvcNum | Is het pvc |0..8 | byte > int
- * ldpeNum | Is het ldpe |0..8 | byte > int
- * ppNum | Is het pp |0..8 | byte > int
- * psNum | Is het ps |0..8 | byte > int
- * otherNum | Is het other |0..8 | byte > int
- * absNum | Is het abs |0..8 | byte > int
- */
- public class Taak_Kunststoffen {
- public static void main(String[] args) {
- int soortKunststof = 0;
- int petNum = 0;
- int hdpeNum = 1;
- int pvcNum = 2;
- int ldpeNum = 3;
- int ppNum = 4;
- int psNum = 5;
- int otherNum = 7;
- int absNum = 6;
- if(soortKunststof == 0)
- {
- System.out.println("soortKunststof = " + soortKunststof + " Het moet in de blauwe zak.");
- }
- else
- {
- if(soortKunststof == 1)
- {
- System.out.println("soortKunststof = " + soortKunststof + " Het moet in de blauwe zak.");
- }
- else
- {
- if(soortKunststof == 2)
- {
- System.out.println("soortKunststof = " + soortKunststof + " Het moet in de roze zak.");
- }
- else
- {
- if(soortKunststof == 3)
- {
- System.out.println("soortKunststof = " + soortKunststof + " Het moet in de roze zak.");
- }
- else
- {
- if(soortKunststof == 4)
- {
- System.out.println("soortKunststof = " + soortKunststof + " Het moet in de roze zak.");
- }
- else
- {
- if(soortKunststof == 5)
- {
- System.out.println("soortKunststof = " + soortKunststof + " Het moet in de roze zak.");
- }
- else
- {
- if(soortKunststof == 6)
- {
- System.out.println("soortKunststof = " + soortKunststof + " Het moet in de roze zak.");
- }
- else
- {
- if(soortKunststof == 7)
- {
- System.out.println("soortKunststof = " + soortKunststof + " Het moet in de roze zak.");
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement