[Solved] Why are my calculations are off? 1 work day is supposed to equal 8 hours. [closed]


Maybe I’m not understanding correctly what setDays() is meant to do, but it seems like this is what you would want:

void numDays::setDays(int d) //mutator function to store the amount of days
{
    days = d;
    hours = days * 8;
}

solved Why are my calculations are off? 1 work day is supposed to equal 8 hours. [closed]