[All]
Course Outline: CA, Diablo Valley College
By: Higher Education
Abstract: CS 110: Computer Science 110
Diablo Valley College
Computer Science 110
Course Outline
I. OBJECTIVES:
- To enable students to analyze problems specifications.
- To enable the students to design, code, debug, test, and document programs written to solve diverse problems.
- Help the student understand the fundamentals of good programming structure and good programming practices.
- Enable the student to understand the properties of data structures such as records, files, and arrays, and to assess their suitability for various applications.
- Introduce the fundamentals of pointers and recursion.
- Enable students to write and debug a 500 to 600 line program, and to explain how their program works.
II. CONTENT:
- Review of computer and programming terminology; using the computer (1 week)
- Introduction to data types; constants, variables, expressions and assignment statements.
- Input/Output
- Structure charts, and subprograms
- Flowcharting and pseudocode, conditions and logical operators, If statements, nested IF statements, selection structure
- Loop structures, counting and conditional loops
- Data representation, advanced data type considerations
- Structured types, one-dimensional arrays; multidimensional arrays; records; (3 weeks)
- File basics
- Introduction to recursion; simple recursive functions.
- Introduction to dynamic data structures; singly linked lists
- Tests
III. METHODS OF INSTRUCTION:
Assigned readings, lectures, and homework. Programs will be written and executed on a campus or home computer.
IV. EVALUATION:
- Methods:
- Write a program to categorize test scores, and find the highest and second highest values.
- Write a program to read a file representing an edit file. Write procedures to change, insert, delete and find lines.
- Frequency of Evaluation:
Typically every two weeks for programs, every six weeks for tests, every two or three weeks for quizzes.
V. REQUIRED MATERIALS:
- Examples of typical college-level textbooks or other print materials:
Textbook: Ron House Beginning with C, (Boston, Mass.: PWS Publishing, 1994). Use of a compiler for a commonly used language.
- Other materials and/or supplies required of students:
Two diskettes
VI. TYPICAL ASSIGNMENTS:
- Reading:
- Read 15 to 25 pages for each class in the textbook.
- Writing, problem solving or performance:
- Write a program to compute and print the amount due for telephone calls
- Analyze the problem specifications for the Game of Life (from the Scientific American and then write a computer program to implement the specifications.
- Other Work:
Date approved by Instruction Committee 11/94 Revised
Date approved by Dean of Instruction
|
Diablo Valley College
CS 110
Course Outline
In this course, we want to teach students logic and programming concepts. The language, whether Pascal, C, or C++ is only a vehicle for instruction.
- Show students how to type in a program, use the compiler and print output.
- Explain what the .CPP, .obj, .bak and .exe files are.
- Constants and Data Types and Variables
- Solution planning
- Variable Declarations
- Comments
- Output (cout <<)
- Assignment, Arithmetic Operations & Precedence
- Input (cin >>)
- getche, puts, getch, gets, getchar
- Number Storage and Mixed Modes
- Control Statements
- ifs
- logical operators
- switch
- nested ifs
- conditional expression operators
- Simple #defines, # includes
- Program Looping
- for
- while
- do...while
- nested loops
- break
- continue
- Counting, Accumulation, Arithmetic Assignment Operator, Increment, Decrement Operator
- How to debug programs, using Turbo C ++ debugger to trace and watch
- Functions (pass by value, pass by reference (&), don't do pass by address)
- returns types
- arguments
- function calls
- storage classes, scope, visibility
- Array of Numbers
- arrays used for storage
- arrays used as accumulators
- arrays used for table lookup
- Indexed arrays
- Array of Characters (Strings), String Functions (don't use pointers, use arrays)
- Two-Dimensional Array of Numbers
- Two-Dimensional Array of Characters (which is a one-dimensional array of strings)
- Functions, Arrays, Passing Arrays to Functions (arrays to be manipulated by subscripts)
- Simple File Manipulation (use streams, have students read from an already created file)
- Structures
- Introduction to Pointers (just do the basics)
- initialization
- dereferencing
- Programming issues (throughout the course)
- style
- efficiency
- maintainability
- reusability
- top-down vs. bottom up approach
- cohesion
- coupling
- global vs. local variables
- time/space trade offs
- cryptic vs. Readable code
- error checking
- user interface
- documentation
|
Latest Comments View All Add New RSS ATOM