

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CECS 174. Programming and Problem Solving I (3) Prerequisite: MATH 117 (or equivalent). Introduction to the basic concepts of computer science and the fundamental techniques for solving problems using the C++ programming language. Structured problem solving, systematic programming methodologies, programming style. Applications to numerical and non- numerical problems. (Lecture 2 hours, laboratory 3 hours.) Traditional grading only. I. PREREQUISITE TOPICS Precalculus Mathematics II. COURSE TOPICS Introduction to the basic concepts of computer science Introduction to the fundamental techniques for solving problems using the C++ programming language Structured problem solving Systematic programming methodologies Programming style Application to numerical and non-numerical problems C++ data types Strings - C strings and C++ strings Selection and repetition statements Input and output (including short overview of basic File I/O) Arrays Functions Use of C and C++ library functions Introduction to Structures III. COURSE OBJECTIVES An understanding of terminology Program, Software, Hardware, memory address, byte, Operating System, CPU, compiler, linking, Algorithm, variables, objects, abstract data type, identifiers, value and reference parameters Knowledge of Software Life Cycle C++ fundamental data types the structure of C++ programs the compilation process testing and debugging a program structured programming methodology fundamental data types C++ operators C++ programming style Procedural Abstraction Scope of variables Inheritance (in terms of the stream operators only) An ability to Write a C++ program dealing that calculates a mathematical formula Choose appropriate data types for program data
Declare variables Assign values to variables Basic input and output of variables Program with logical expressions Structure while, do-while, and for loops Write conditional statements (if, if-else, compound if-else and switch statements) Declaring, initializing and accessing cells in an array Pass an array to a function as a parameter. Call a function from the C and C++ libraries Declare a function Write C++ functions to perform a task. Write C++ functions that calculate and return values. Format the output for a C++ program. Identify member functions from the istream and ostream classes: get(), put(), eof(), fail() Use the ctype member functions: isalpha(), islower(), isupper(), isdigit(), ispunct(), toupper(), tolower() Use functions from the C math library Read and write disk files through a C++ program Design loops controlled by a counter terminated by a sentinel value terminated by user signal terminated by end of input Design and write a design sheet for a program Use strings and the string library functions in a C++ program Communicate