CS 151

Cover page image

Cay S. Horstmann

Lecture 2

Lecture 2 Clicker Question 1

Which of the following is not a phase of the software development process described in Section 2.1?

  1. The analysis phase
  2. The design phase
  3. The implementation phase
  4. The testing phase

Lecture 2 Clicker Question 2

Which of the following is not a goal of the design phase?

Lecture 2 Clicker Question 3

How does a voice mail user delete messages in the application described in Section 2.10.1?

Lab

The Lab Report File

  1. Scribe: Make a directory to hold your lab work and put an empty file in it.
    cd ~/cs151
    mkdir lab2
    touch lab2/report.txt
  2. Now open the file in your favorite text editor.
  3. Type in today's date and the names of yourself and your lab buddy. Save your file.
  4. Add your file and push your repo.
    git status
    git add lab2
    git commit -a -m "Started lab 2"
    git push
    

The Book Code

  1. You need to be familiar with the sample code in the book
  2. Clone the repo that contains the code
  3. Open a terminal and type
    cd
    git clone https://bitbucket.org/cayhorstmann/oodp3code
  4. Now you have a directory oodp3code
  5. Is this directory inside our outside your cs151 directory? Why?
  6. Where is the code for the voice mail simulation?
  7. The scribe puts answers to these questions into lab2/report.txt

The Lab Code

  1. Coder: Make a lab2 directory inside your repo (~/cs151):
    mkdir ~/cs151/lab2
    
  2. Coder: Copy the oopd3code/ch02/mail directory into your lab2 directory:
    cp -R ~/oodp3code/ch02/mail ~/cs151/lab2
    
  3. Scribe: What is inside the coder's ~/cs151/lab2/mail directory now? Have her/him show you. You can just write “... files with extension ...”
  4. Coder: Type
    git status
    Then add the lab2 directory to git.
  5. Scribe: How did the driver do that?

Eclipse

  1. Coder: Fire up Eclipse and make a new Java project.
  2. Coder: Build and run the program.
  3. Scribe: What happens when she/he runs it?

Discussion