Computer Science 112:

Introduction to Computer Science II

Gregory M. Kapfhammer

flickr photo shared by Billboard Art Project under a Creative Commons ( BY-NC-ND ) license

Color Scheme

Key Concept

Corresponding Diagram

In-Class Discussion

In-Class Activity

Details in the Textbook

Software Development





Using Pseudocode

Express the basic operations of our programs

Avoid the implementation complexities of Java

Any questions about using pseudocode?

Style of Code Comments

Let's use the JavaDoc standard!

Why is it appropriate to adopt this standard?

Benefits? Drawbacks?

Software Testing

Goal: Establish a confidence in program correctness

Goal: Identify defects into our programs

Make sure that you pick the correct inputs!

Complete the testing activity with a partner

Run the tests for Kinetic

Set your CLASSPATH to contain junit.jar

Compile your program using the javac command

Run: java junit.textui.TestRunner TestKinetic

Run: java junit.swingui.TestRunner TestKinetic

Is there a defect in the program?

Evidence for the defect?

Wait! Did all of the test cases fail? Why not?

Passing tests? Failing tests? Explain why?

Determine the input and status of each test case

Not all test cases are equivalent!

Any questions about software development?