public void faireTest() { if (code == "blue") { Console.WriteLine("vous êtes vacciné, pas besoin de passer le test de covid"); } else { int daysWaiting = 0; for (int i = 0; i < 2; i++) { daysWaiting++; Console.WriteLine("waiting day : " + daysWaiting); } Console.WriteLine("\n"); if (CWIC == false && Symptoms == false) { Console.WriteLine("vous avez testé négatif pour covid \n"); code = "green"; } else if (CWIC == true && Symptoms == true) { if (age < 60) { code = "orange"; } else if (age >= 60) { code = "red"; } Console.WriteLine("vous avez testé positif pour covid \n"); patient p1 = new patient(); if (code == "orange") { p1.passerQuarantaine(); } else if (code == "red") { p1.enReanimation(); } } } }
public static void Aggravation_Amelioration() { int test = rand.Next(0, 2); if (test == 1) { Console.WriteLine("\n etat amélioré \n"); ameliore = true; patient p1 = new patient(); p1.passerQuarantaine(); } else { Console.WriteLine("\n décès du patient en raison de l'aggravation \n"); } }