Ejemplo n.º 1
0
 //update percentage tot maximaal ingevoerde voedingswaarden
 void update_procenten()
 {
     logic.meal total = consumption_container.get_total_value();
     prcentvodaan_fat  = total.fat / consumption_container.max_fat;
     prcentvodaan_prot = total.prot / consumption_container.max_prot;
     prcentvodaan_kcal = total.kcal / consumption_container.max_kcal;
     prcentvodaan_car  = total.carb / consumption_container.max_carb;
     procent_aantal_ongezonde_consumpties = consumption_container.aantal_unhealt_consumption / consumption_container.max_unhealty_comsumpltions;
 }