(a) No person shall operate a motor vehicle or motorcycle upon any street or highway in a weaving or zigzag course unless such irregular course is necessary for safe operation or in compliance with law.
(b) No person shall operate a motor vehicle or motorcycle without giving his or her full time and attention to the operation of such vehicle.