CS 120

From CS Wiki
Jump to: navigation, search

CS 120: Computer Science I

Catalog Description

Fundamental programming constructs, algorithms, and problem solving, fundamental data structures, overview of programming languages, virtual machines, introduction to language translation, declarations and types, abstraction mechanisms, object-oriented programming. Three lectures and one 2-hr lab a week.

Type: Required for all Computer Science majors.

Total Credits: 4

Contact Hours: 3 lecture hours and a 2 hour lab per week

Course Coordinator: Terence Soule

URL: http://www2.cs.uidaho.edu/~cs120/s16/soule/index.html

Prereq: Math 143 with a grade of "C" or higher, or CS 112 with a grade of "C" or higher; or sufficiently high ACT, SAT or Math placement test score to qualify for Math 170.

Textbook: A Project Based Introduction to C++, Soule, ISBN: 9781465260468, 2011, Kendal Hunt

Textbook URL: https://www.kendallhunt.com/store-product.aspx?id=263128

Prerequisites by Topic: Algebra skills, ready to begin calculus

Major Topics Covered

  1. Intro to computers and programming (1 hour)
  2. Basic program structure, variables, I/O (2 hours)
  3. Types: internal representation, base conversion (2 hours)
  4. Arithmetic expressions, operators, computer arithmetic (2 hours)
  5. Relational operators, conditional statements (if, switch) (3 hours)
  6. Iteration, looping, loop techniques (4 hours)
  7. Functions, parameter passing, return values (3 hours)
  8. Files, file I/O (2 hours)
  9. Arrays, 1-D, multidimensional (3 hours)
  10. Character strings (C-style and C++ string class ) (2 hours)
  11. Classes (4 hours)
  12. Social and Ethical Issues (2 hours)
  13. Pointers with Arrays, dynamic memory (4 hours)
  14. Recursion (3 hours)

Course Outcomes

Note: the primary Student Outcomes addressed in this course are (a), (c), (d), (f), (i), (j), (k). All are introduced.

  1. Make a description of a problem that has a straight forward computing solution, design, construct, and test a complete program that solves the problem (a).
  2. Work in a small group to solve a relatively simple computing problem (d).
  3. Understand the potential consequences of program failure (f).
  4. Understand some of the breadth of areas in which computer science is applied (j).
  5. Understand the expectations for academic integrity as they apply to software development (f).
  6. Students will be able to document computer solutions to problems with well written reports in a standard format that emphasizes insight into the problem solving, not just the presentation of the output .
  7. Use a C++ compiler (k).
  8. Use code libraries (k).
  9. Use a reference, including on-line references, to learn about the contents of a code library (i).
  10. Define C++ constants and variables of type char, int, float, and double. They will know the different characteristics of these data types and when each type should be used (c).
  11. Understand how to use type casting and how the compiler converts between types in mathematical / logical expressions (c).
  12. Create correctly formatted C++ expressions using the following operators: +, -, #, /, %, (), and [ ] (c).
  13. Build programs units consisting of the sequence, selection, and repetition programming structures of C++. More specifically they will be able to determine under what conditions each of the following structures should be used: sequence: assignment statement; selection: if, if-else, if-else if-else if-else, and switch structures; repetition: for, while, and do-while structures (c).
  14. Read / write information from / to files (c).
  15. Create and call functions having arguments and return values. They will know when arguments should be passed by value or reference (c).
  16. Use and manipulate one and two dimensional arrays (c).
  17. Use and understand the use of recursion (c).
  18. Understand how to allocate memory dynamically using arrays and pointers (c).
  19. Use and manipulate singly-linked lists using pointers (c).
  20. Create simple classes having data members and member functions. They will be able to read class header files and be able to call object member functions defined in the header files (c).