A tax is hereby imposed upon the gross receipts from the renting of any and all rooms, apartments or sleeping quarters in any hotel or motel, as defined in this chapter, at the rate of 7% of such gross receipts derived from the renting of a room, apartment or sleeping quarter while rented by the same person for a period of not more than 31 consecutive days.