(a) No person shall operate a motor vehicle or motorcycle upon any street or highway in a weaving or zigzag course unless the 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 the vehicle.