|
|
UNIVERSITY OF HOUSTON Electrical-Electronics Technology
COURSE OUTLINE COURSE: ELET 2300 Introduction to C-Language Programming PREREQUISITE(S): TECH 1300 or equivalent CREDIT HOURS: 3 (3-0) AUTHORIZED TEXT: C: Step-by-Step by Waite RECOMMENDED Turbo C: The Essentials of C Programming REFERENCES: by Kelley and Pohl The Benjamin/Cummings Publishing Co., Inc. The First Book of ANSI C: Fundamentals of C Programming, 2nd ed. by Gary Bronson West Publishing Company
STATEMENT OF COURSE OBJECTIVES: The student will learn the effective use of the C programming language syntax to develop special programs, and provide I/O control for special applications. The student will use both the integrated environment development system and command line compilation.
BEHAVIORAL OBJECTIVES: The students' abilities will be demonstrated by exams and programming reports. Six reports and two mid-term exams and one final exam are required for the completion of the course. The six reports will cover all aspects of the C syntax that is included in the course outline. COURSE OUTLINE: UNIT I. Introduction A. History of C B. Why use C C. Compilers D. Memory models UNIT II. Program Structure A. Header and body B. Use of comments C. Construction of the program 1. /* Comments */ 2. { Body } braces 3. File names 4. Standard compiler library UNIT III. Data Concepts A. Interactive programs B. Variables, constants, and data types C. Declaring words, bytes, and bits D. Key and reserve words UNIT IV. Simple Input / Output Operations A. Character strings 1. printf () 2. scanf () B. Single characters 1. getchar () 2. Putchar () UNIT V. Statements and Operators A. Expressions B. Conversions and typecasting UNIT VI. Decision Making Abilities A. Relational operators B. Relational expressions C. Logical operators UNIT VII. Loops and Controls A. Control statements for decision making B. Branching and jumps (if statement) C. While loop D. Do while for loop UNIT VIII. Input/Output and Redirection A. Buffers B. Redirection and files UNIT IX. Storage Classes A. Automatic Variables B. External Variables C. Scope and Functions UNIT X. Functions and Arguments A. Global and local variables B. Recursion C. Altering variables in calling programs UNIT XI. Strings and Arrays A. Dimensions and initialization of arrays B. String functions C. Pointers & pointer operations D. Pointers and multidimensional arrays E. Pointers and strings UNIT XII. Input, Output, and Disk Files A. Streams and Files 1. Text Streams 2. Binary Streams B. Standard I/O 1. fopen () and fclose () function 2 fprint (), fscanf (), fgets (), and fputs () 3. Random access: fseek () and ftell () UNIT XIII. Advanced Topics (time permitted) A. Structures B. Pointers to Structures
|