The required course textbook is an interactive online zyBook that offers a number of advantages over static text-dense textbooks. It's available through the UCLA Store's Bruin One Access (for undergrads) or Inclusive Access (for grads) program.
(By the way, if you are having enrollment problems with CS 31, see https://cs.ucla.edu/classes/enroll/31/.)