Example #1
0
        static void Main(string[] args)
        {
            //inicjalizacja klas
            PersonReader  reader     = new PersonReader();
            BMICalculator calculator = new BMICalculator();
            BMIPrinter    printer    = new BMIPrinter();

            //logika
            Person   person             = reader.readPerson();
            BMILevel calculatedBMILevel = calculator.calculateBMI(person);

            //prezentacja wyniku
            printer.printBMI(calculatedBMILevel);
        }
Example #2
0
 public void printBMI(BMILevel level)
 {
     Console.Write(level.message);
     Console.ReadKey();
 }