Assignment 6

Back Up Next

Home
Assignment 1
Assignment 2
Assignment 3
Assignment 4
Assignment 5
Assignment 6
Assignment 7

CS 161
50 POINTS

DUE announced in class

Chapter 4 of our text book given an introductions to two designing methods for programming, including Object Oriented Programming and Top-down design. The answers for the questions below can be found in Chapter 4.

Top-Down Design

A technique for developing a program in which the problem is divided into more easily handled subproblems, the solutions of which create a solution to the overall problem.

Object-Oriented Programming

Object-Oriented Programming (OOP) is a new programming paradigm. The structured programming paradigm was based on the division of the program in functional modules (called functions, procedures or subroutines). In the structured paradigm, the data is a passive entity, which is operated by the active functional modules. In contrast, The OOP paradigm is based on the division of the program in classes, that have both behavior and state. We say that every object is an instance of a class. A class may have several instances. Each instance has its own state, but all instances of the same class present the same behavior. In OOP, all objects are active. They communicate through message passing, like people. Thus, the OOP paradigm is much easier to learn.

 

This Assignment has 2 parts:

You are to search the Internet (web sites) that describe and give examples of these two methods of program design. These can be other Universities that have courses online, technical web sites, books online, etc. You will find 3 sites related to Top-Down Design and 3 relating to Object-Oriented Programming.

Once you find those sites you are to create a brief paragraph explaining what can be found on this site and what is their definition for Top-Down Design and Object-Oriented Programming (use copy and paste between your browser and text editor)

Your are to turn in:

One Page will with 3 sites related to Top-Down Design. Write down the site location and two-three paragraphs explaining the contents of the site.
A second page the sites related to Object-Oriented Programming. Write down the site location and two-three paragraphs explaining the contents of the site.
A third page with the answer for the questions below that can be found in Chapter 4.

If you need any assistance on how to use the web browser to find information on the internet please let your instructor know.

Answer these questions on the third page. There is no need to copy the question, but TYPE the answer.

  1. The problem-solving phase of programming includes analysis and design.
  2. In a top-down design, a concrete step is one in which some of the implementation details remain unspecified.
  3. A hierarchical implementation of a top-down design is one in which some or all of the modules are implemented as separate C++ functions.
  4. Top-down design focuses on actions and algorithms, whereas object-oriented design focuses on entities (objects) and their associated operations.
  5. Which of the following statements about top-down design is false?
  6. a. Modules are the basic building blocks of top-down design.
    b. Each level of a solution tree is more abstract (less detailed) than the level above it.
    c. A module can contain both abstract steps and concrete steps.
    d. A concrete step is a step that can be translated directly into C++ code.
    e. none of the above

  1. Which of the following statements about object-oriented design (OOD) is false?
  2. a. OOD focuses on entities (objects) and operations on those objects.
    b. The first step in OOD is to identify the major objects in the problem, together with their associated operations.
    c. In OOD, data plays a secondary role in support of actions to be performed.
    d. Object-oriented programming languages have been developed specifically to support OOD.
    e. OOD and top-down design can be used in combination with each other to solve problems.

  1. In the problem-solving phase of programming, a(n) ____________________ is a self-contained collection of steps that solves a problem or subproblem.
  1. ____________________ is a property of a module that performs exactly the same operation as the higher-level abstract step it defines.
  2. In essence, the concept of ____________________ means that a module should do just one thing and do it well.
  3. When a top-down design is implemented as one long sequence of steps, it is called a(n) ____________________ implementation.
  4. In top-down design, a(n) ____________________ is a diagram of the hierarchical structure of the solution.
  5. ____________________ is a technique for developing a program in which the solution is expressed in terms of objects "self-contained entities composed of data and operations on the data.
  6. In an object-oriented programming language, a(n) ____________________ is a programmer-defined data type from which objects are created.
  7. Program code is said to be ____________________ if it contains meaningful identifiers and judiciously used clarifying comments.
 

 

Back to CS 161 Homepage
This page was last modified April 02, 2000
wmorales@pcc.edu