|
CS 102 Introduction to C Programming |
Instructor: Danny Hardin Get Visual Studio from UAH for FREE - Unlimited Use Graduate Assistant: TBD |
GradingExams: 40% - Two major exams. (20% each) Keep all your homework and programming assignments NEATLY ORGANIZED in a folder or soft cover binder. Always provide a paper copy of any programming assignments.
|
Course Objectives:CS 102 - Introduction to C ProgrammingHours: 3 Program design and implementation in the C programming language. Basic program structure, data types, control structures, and file organization. System libraries, input/output features. Cannot be counted toward a CS major. Prerequisite for CS 121Program design and implementation in the C programming language. Basic program structure, data types, control structures, and file organization. System libraries, input/output features.
|
Additional Class Materials:Two Storage Devices (Memory Sticks or CD) REMEMBER! Make sure that your name is on every item turned in.
|
UAH Course PolicyThe following policies are adapted from the general policies of the Computer Science Department: Attendance: Regular class attendance is required. You are responsible for all material covered in class, regardless of whether or not it is in the textbook, as well as for any announcements, assignments, or other class content. If you miss a class you are responsible for obtaining the missed assignments from a classmate. Assignments: There will be numerous programming and written assignments. The assignments are crucial to your success in this course and you are expected to complete them all. Any assignment not turned in on time will receive a grade of zero. If you anticipate difficulty completing an assignment on time, make arrangements with the instructor before the assignment due date. Assignments are to be turned in at the BEGINNING of class on the date due. You will receive program and homework assignments well in advance of their due date. Tests and Exams: Makeup exams will be given only if you have made prior arrangements with the instructor, and only if you have a valid reason for missing the test, such as illness, business trip or UAH athletic participation. Incompletes: A grade of Incomplete is assigned by the instructor when a student, due to circumstances beyond his or her control, has not satisfied some requirement of the course. An example of a legitimate circumstance is an illness which prevents completion of a final program. If you have fallen behind in a class due to work, family obligations or other course work the appropriate solution is to withdraw from the course. Withdrawals: The University policy for withdrawing from a class is as follows: through the eighth week of the Fall or Spring Semester a student may withdraw from any course. After the eighth week, a student may withdraw from a course only under extenuating circumstances and with the approval of the dean of the college in which the student is enrolled. Any student failing to follow the established procedure for withdrawal will continue to be enrolled in the class and may receive a failing grade in that course. Software: You may develop your programming assignments on any computer, using any C compiler, but they must run under Microsoft Visual Studio 2012 in the classroom (N327) or lab (N329). |
Week |
Material |
Class Topics and Homework Assignments |
1 |
Lecture |
Course OverviewSyllabus How to use Visual Studio 2012 in this Course Reading Assignment: |
2 |
Chapter 2 |
Introducing the MVS IDE; First C ProgramThe MicroSoft Visual Studio Integrated Development Environment Template for C programs: C Program SOLUTIONS VIDEO |
3 |
Chapter 2 |
Writing Information to the ConsoleWriting output to the console with printf SOLUTIONS VIDEO Reading Assignment: Chapter 2 |
4 |
Chapter 2 |
Introduction to Variables; Read Data from Console, Add
|
5 |
Chapter 2 |
Arithmetic in CArithmetic operators +, -, *, /,and % |
6 |
Chapter 9 |
Formated Printing of Integer and Real ValuesThe %d, %u, %f and %lf field specifiersSOLUTIONS
|
7 |
Optional Material |
Simple Programs, Writing Output to a FileOpening a file with fopen() SOLUTIONS Reading Assignment: Chapter Three |
8 |
Chapter 2 |
Decision Making - The Simple if StatementRelational operators (Figure 2.12) SOLUTIONS |
9 |
Chapter 3 |
The if . . . else StatementSyntax of the if ... else SOLUTIONS |
10 |
Chapter 3 |
Introduction to the While LoopWhile loop syntax and programs SOLUTIONS |
11 |
Chapter 3 |
While Loop ExamplesAdditional while loop examples SOLUTIONS |
12 |
Chapter 3 |
Summations and Bounds Tests - While LoopSOLUTIONS |
13 |
Chapter 4 |
Introduction to the For Loop; Review for Exam IFor Loop Syntax SOLUTIONS |
14 |
Chapter 4 |
More of the ForAdditional For Loop applications SOLUTIONS |
15 |
EXAM I |
Test on Chapters 2 and 3 |
16 |
Chapter 4 |
The Do - While Loop & Loop Examples
|
17 |
Chapter 5 |
Introduction to FunctionsMath Library Functions SOLUTIONS
|
18 |
Chapter 5 |
Basic FunctionsExamples: SOLUTIONS |
19 |
Chapter 5 |
Basic Functions - More ExamplesSOLUTIONS |
20 |
Chapter 5 |
Random NumbersIntroduction to the rand and srand functions |
21 |
Chapter 5 |
Advanced Topics of FunctionsScope Rules SOLUTIONS |
22 |
Chapter 5 |
Functions & the Switch Statement |
23 |
Chapter 6 |
Arrays Part I: One Dimensional ArraysIntroduction to One Dimensional Arrays SOLUTIONS |
24 |
Chapters 4 & 5 |
EXAM II
|
25 |
Chapter 6 |
Characters and StringsIntroduction to character and string arrays SOLUTIONS |
26 |
Chapter 6
|
Arrays Part II: Operations on One Dimensional ArraysSum the elements of an array SOLUTIONS |
27 |
Chapter 6 |
Arrays Part III - Passing Arrays to FunctionsMechanics of passing an Array to a Function SOLUTIONS |
28 |
Chapter 6 |
Multidimensional Arrays, Review for FinalIntroduction to Multi Dimensional Arrays |
FINAL |
FINAL EXAM (April 30, 3:00 - 5:30) |