CSCI 162

Introduction to Programming II

Coordinator: Chad Hogg

Credits: 4.0

Description

Continuation of CSCI 161 covering advanced computer programming techniques. Emphasis on object-oriented programming, specification, design, elementary data structures, and proper use of programming language and development tools. Abstract data types, classes and objects, recursion, linked lists, queues, stacks and binary trees. Current language used is Java.

Prerequisites

C or better in CSCI 161

Sample Textbooks

Building Java Programs: A Back to Basics Approach (5th edition) by Stuart Reges and Marty Stepp.

Course Outcomes

At the end of this course, a successful student will be able to

  1. design, implement, and test programs of several hundred lines divided among several classes.

  2. use advanced programming techniques including multidimensional arrays, recursion, generic programming, exception handling, inheritance, and interfaces.

  3. implement abstract data types such as lists, stacks, queues, and sets using data structures such as arrays, linked lists, and binary trees.

  4. use a debugger to find and fix errors in a program.

  5. describe the concepts of intellectual property, copyrights, patents, and trade secrets, as well as their application in computing.

Major Topics Covered

  1. Review
    1. Control Structures
    2. Methods
    3. File I/O
    4. Arrays and Matrices
  2. Class Relationships
    1. Composition
    2. Inheritance
    3. Interfaces
  3. Software Development Fundamentals
    1. Software Life Cycle
    2. Complexity Analysis
    3. Symbolic Debugging
    4. Test Plans
  4. Abstract Data Types
    1. Types
      1. Lists
      2. Sets
      3. Maps
      4. Stacks
      5. Queues
    2. Operations
    3. Applications
    4. Implementations
  5. Data Structures
    1. Partially-filled Arrays
    2. Linked Lists
    3. Binary Trees
  6. Implementation Details
    1. Generic programming
    2. Iterators
    3. Recursion
  7. Intellectual Property
    1. Copyrights
    2. Patents
    3. Trade Secrets
    4. Trademarks
    5. Applications in Computing

Sample Laboratory Projects

  1. Introduction to lab. Use the debugger on a provided program
  2. Use of multidimensional arrays. Write a program to play the mines game.
  3. Build a class that keeps track of currency and does currency conversions.
  4. Write a recursive function to print a number in a given base.
  5. Write a recursive function to solve the 8-queens problem.
  6. Using the provided ADT for a stack, develop a program to evaluate a postfix expression.
  7. Implement a queue ADT using a circular array representation. Build a driver to test it.
  8. Implement a stack ADT using a linked list representation. Build a driver to test it.
  9. Using a search tree ADT, write a procedure that does an in-order traversal of a binary tree. Use this to sort a collection of words.