Exemple #1
0
        //Dit is deel 2 van dag 1
        public static int BerekenWerkelijkeBrandstof(int gewicht)
        {
            int totaalBrandstof = 0;
            int extraBrandstof  = RuimteModule.BerekenBrandstof(gewicht);

            while (extraBrandstof > 0)
            {
                totaalBrandstof += extraBrandstof;
                extraBrandstof   = RuimteModule.BerekenBrandstof(extraBrandstof);
            }

            return(totaalBrandstof);
        }
 public void voegModuleToe(RuimteModule ruimtemodule)
 {
     ruimteModullenLijst.Add(ruimtemodule);
 }