Spring 2025 CS 31

Programming Assignment 2 Warmup

Time due: 11:00 PM Saturday, April 12

The purpose of this warmup is to introduce you to the nature of the class zyBook and to give you practice with the concepts you'll need for Project 2, but in smaller contexts to clear up any misconceptions.

What you must do

Acquire a subscription to the class zyBook; the Textbook section of the syllabus has details.

Interactive activities in the zyBook are

Go through the sections up to and including section 3.9. Do some of the PAs and CAs along the way to get a feel for how they work. If you have prior experience with C++, you might just skim the sections with topics that you're very familiar with. However, if you get to topics you're not comfortable with, start doing most or all of the PAs and CAs.

Do the following labs desgined to get you used to the zyBooks builtin compiler and execution environment:

What to turn in

You won't turn anything in through the CS 31 web site; the zyBook system retains your lab submissions. If you happened to have already done some of these labs before this warmup was posted, your zyBook knows that. You may submit more than one attempted solution to a ZyBook lab; the number of attempts does not affect your score. Once you've submitted a correct solution for a lab, you earn full credit for it; a later submission of an incorrect solution for that lab is harmless. (For example, you might want to experiment with alternative ways of solving the problem.) It is only these six little labs that we will be counting for this assignment; doing the PAs, CAs, and any other labs in sections 1 through 3.9 of the zyBook are purely for your own benefit, not for points.

Do these labs by 11 PM Saturday, April 12; they will be worth less credit after that time. It would be wise to start going through the zyBook for this warmup immediately and get the labs done well before the April 12 deadline. This will give you more time to work on Project 2.