CS16, 10S, H02 (due Fri Lecture 04.02) Oualline, Chapters 3, 4--Style, C basics—Total points: ?
Online version: http://www.cs.ucsb.edu/~pconrad/cs16/10S/homework/H02 (printable PDF)
Accepted: on paper, in lecture (9am, 10am, 11am or noon) on Friday, 04/02 in Chem 1171
Late Policy: No email submission allowed—and don't "slip it under my door". If you need to make it up, you must do so during office hours, or make an appointment to see me, and you must request this appointment within 48 hours of when the assignment was originally due.
Personal Day/Sick Day policy: Everyone is permitted one "personal day/sick day" when you get to make up a missed homework assignment for free during office hours or via appointment. After that, you may not make up the homework assignment—you can only earn back the points through extra credit opportunities.
(For more details, see the syllabus and the homework policy)
Name: (3 pts)___________________________ UMail address (3 pts) ______________@umail.ucsb.edu
Lab Section (4 pts) Circle one: 9am 10am 11am noon crashing unknown
(Note: For now, circle the lab section you are registered for on GOLD. If you need to request attendance at a different lab section because of an ACTUAL SCHEDULE CONFLICT, please email pconrad@cs.ucsb.edu with details)
This assignment is due IN LECTURE ON FRIDAY 04/02
It may ONLY be turned in IN LECTURE ON FRIDAY 04/02
The only other time/place this lab will be accepted is in person, at your instructor's office hours within one week of 04/02 , or the day you add the class on GOLD, whichever is later, in accordance with the homework policies outlined on the course syllabus. Make this appointment within 48 hours of 04/02, or when you add the course.
Please obtain the official textbook for this course by Delores Etter. I will assign homework from that book on Friday, and it will be due on Monday 04/05. Here is an excerpt from a memo from the bookstore regarding availability of textbooks:
...
I wanted to send out a reminder regarding what to say to students who complain that they can't get the book....if you would forward this email to your faculty it would be much appreciated and hopefully eliminate some anxiety for students and faculty.
TELL THE STUDENTS TO COME TALK TO US IN THE TEXTBOOK DEPARTMENT. We will make sure they get a book. If we are out, we can get more copies in approximately three to five business days.
If students don't talk to us we have no way of knowing somebody wants a book. We base our reordering on need. Students shop in so many different places these days we cannot predict how many will want to shop here. Freight is hugely expensive, as is the labor involved in bringing books in that we might not be able to sell. Therefore, we need to hear from our students if they want something...
Best wishes,
Cynthia Ellestad, Course Materials Department Manager, UCSB Bookstore
For now, the reading assignments are chapters from an online textbook—Practical C Programming by Steve Oualline. Links to material in this book appear below.
Once you've read Chapter 5, write answers to the questions on the reverse side of this sheet (use the PDF link to print a copy of this if you weren't in class).
Even though this book is a bit "dated"—for example, the advice in section about 5.8 about float vs. double is the opposite of what I told you in class*—there is still lots of good information in this book. And is has the advantage of being free, and available to you while we wait for everyone to get their textbooks.
(*Regarding float and double—my advice is always use double unless you have a specific reason to prefer float. The reason the conventional wisdom has changed: memory is cheaper and processor speeds are faster than they once were.)
To link directly to this book, use these links: (on campus) (off campus)
Please turn over for questions to answer
Continued from other side