2020 - The probability of eating out is lower on a monday, and high on a friday, saturday & sunday (eg days MOD 7)
Revision as of 12:36, 18 December 2019 by Admin (talk | contribs) (Created page with "=Follow this link first to count the number of days= 2020_-_Display_how_many_days_have_passed =Find the ProcessDayEnd method in Simulation class (not the one in Company c...")
Contents
- 1 Follow this link first to count the number of days
- 2 Find the ProcessDayEnd method in Simulation class (not the one in Company class)
- 3 Look for simulationSettlement.FindOutIfHouseholdEatsOut(counter, ref x, ref y)
- 4 Add extra parameter ie simulationSettlement.FindOutIfHouseholdEatsOut(counter, ref x, ref y, days)
- 5 Go to the Settlement class and find FindOutIfHouseholdEatsOut
- 6 Add the extra parameter ie FindOutIfHouseholdEatsOut(int householdNo, ref int x, ref int y, int days)
- 7 Add a new double called change
- 8 inside this method, create a switch statement on the days%7 ie switch(days%7){}
- 9 Add a case for 0 and set change to 0.8, case for 4,5,6 should set change to 1.2
- 10 Inside this method look for households[householdNo].GetChanceEatOut()
- 11 Add * change to this code, ie households[householdNo].GetChanceEatOut()*change
Follow this link first to count the number of days
2020_-_Display_how_many_days_have_passed