CS8, 10F, H00, due Tue Lecture 09.28—Miller/Ranum Ch1 (thru p. 17)—Total points: ?

Available online as http://www.cs.ucsb.edu/~pconrad/cs8/10F/homework/H00—printable PDF

Name: (4 pts)   Umail Address: (4 pts)   @umail.ucsb.edu
Lab Section (2 pts)—circle one:  9am   10am   11am   noon   unknown   crashing 
You may collaborate with at most ONE other person on this homework assignment. If you do, please enter his/her name here:  
  (He/she should also enter your name on her/his assignment.)

(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 Tuesday, 09.28.
It may ONLY be submitted in Lecture, in NH1006 at 2pm on Tuesday.
You must come IN PERSON to turn it in during your assigned Lecture section.

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)

Please note the following typo on p. 13:

"What if you want to divide 7 by 2 and get 7.5 as the answer?"

Should be:

"What if you want to divide 15 by 2 and get 7.5 as the answer?"

Reading: Read the syllabus for the course, and then read Chapter 1, at least up through page 17. (If you don't have a copy of the textbook yet, there is one on reserve at the Davidson Library Course Reserve Desk—ask for the reserve book for "Computer Science 8, Conrad".)

Then, answer the following questions. Be sure to check both sides.

  1. (5 pts) The name of this course is "Introduction to Computer Science". Yet, the authors of our textbook, in Chapter 1, indicate that there is some difficulty with applying the word "science" to Computer Science. They make the point that Computer Science is fundamentally different from Biology, Chemistry or Physics. Why do the authors make this claim—that is, what is different about Computer Science vs. those other fields?

  2. (5 pts) The authors state that Computer Science is the study of Algorithms. According to the authors, what is an algorithm?

Please turn over for more...

...continued from other side

  1. On p. 11, there is an example of a Python session. There are several symbols in this session. Describe what each of these symbols means:

    1. (2 pts) >>>

    2. (2 pts) *

    3. (2 pts) //

    4. (2 pts) %

  2. Read pages 10-17 about the three types of numbers that we can work with in the Python programming language. These include integers, floating-point, and complex numbers.

    1. (2 pts) Which of these types of number would we use to represent your GPA?

      Circle one:   integer   floating-pt   complex

    2. (2 pts) Which of these types of numbers would we use to represent the number of students registered for this class?

      Circle one:   integer   floating-pt   complex

    3. (2 pts) Which of these types of numbers would we use to represent the square root of -4 ?

      Circle one:   integer   floating-pt   complex
  1. Let's look a bit more closely at Complex Numbers.

    You may remember from your High School math courses that the letter i is frequently used to represent the square root of negative 1. Therefore it is traditional to write complex numbers in the format (a + bi).

    1. (2 pts) Fill in the blank: A complex number has an

      imaginary part and a _________________ part.

    2. (2 pts) What letter of the alphabet is used in Python (instead of i) to represent the imaginary part of a complex number?

  2. From the syllabus—answer briefly. You don't need a long answer—just enough so I know you actually read the syllabus. :-)

    1. (2 pts) Is attendance required at lectures?

    2. (2 pts) How about discussion sections (labs?)

    3. (2 pts) Are exams in this course open book or closed book?

    4. (2 pts) If you want to take another course this quarter that overlaps in time with the lecture or discussion section for this course, is that permitted?

    5. (2 pts) Are you permitted one sheet of notes on exams?

    6. (2 pts) What is the policy on homework collaboration?

End of H00