The chief code enforcement officer is authorized and directed to make inspections to determine the condition of dwellings, dwelling units and premises located within the city in order that such inspector may perform his duty of safeguarding the health and safety of the occupants of the dwelling and of the general public. For the purpose of making such inspections the chief code enforcement officer is authorized to enter, examine and survey at proper times, after a ten-day notice, all dwelling units, rooming units and premises. The owner or occupant of every dwelling, dwelling unit and rooming unit or the person in charge thereof shall give the chief code enforcement officer access to such dwelling unit, dwelling or rooming unit and its premises, at proper times after due notice for the purpose of such inspection, examination and survey. Every occupant of a dwelling or dwelling unit shall give the owner thereof or his agent or employee access to any part of such dwelling or dwelling unit or its premises at all reasonable times for the purpose of making such repairs or alterations as are necessary to effect compliance with this chapter. (Prior code § 11-2)