CS2 Programming 1
CS2 Programming 1
COURSE SYLLABUS
SCHOOL YEAR 2009-2010
I. COURSE CODE: CS 2
This course aims to make students understand the role of the computers and computer programmers in society. It also
aims to introduce to the students general techniques of programming; develop good programming habits, teach programming
in the C language; introduce some significant applications of programming; and, let students create C application programs of
their own.
IV. PRE-REQUISITES:
At the end of the term, the student is expected to develop, debug and document a user-friendly program using C
language.
Specifically, the student should be able to know the following:
Value
Strategies/ Evaluatio
Course Content Objectives Schedule Webbin
Activities n
g
Week 1 Discuss the content
COURSE ORIENTATION List and Discuss to the students of the course CS2 –
the content of the course CS2 – Programming 1.
Programming 1
Enumerate the
Identify the different different
requirements for the course requirements of the
course
List and discuss the different
topics related to CS2 – Enumerate and
Programming 1 Explain the
different topics to
this course
Discuss the Vision, Mission and • Introduction to
Goals of URC and VMG of CSE Programming
Department • Systems
Development
• Algorithms and
Flowcharting
• Programming
Basics
• Simple C
Program
• Conditional
Statements
• Looping
Statements
• Functions as
Subprograms
• Array
Value
Strategies/ Evaluatio
Course Content Objectives Schedule Webbin
Activities n
g
• Strings
• Mathematical
Functions of C-
Language
• Graphics
Functions
ALGORITHMS AND
FLOWCHARTING
o Algorithm
.
What is an Define Algorithm?
Algorithm
Discussion
Characteristics of Understand the Evaluation
Patience
an Algorithm Characteristics of an of flowcharts
Topics focusing on
Algorithm. develop by
the ff.
students
Critical
FLOWCHART 1. Algorithms and Thinking
o ADVANTAGES OF USING Define flowchart?
FLOWCHARTS Flowcharting
o LIMITATIONS OF USING Enumerate and Flowchart
FLOWCHARTS discuss the output of
2. Flowchart Accuracy
advantages and students
limitations of
3. Flowchart Symbols
FLOWCHART SYMBOLS flowcharting
o Flowchart Example 4. Conditional
Problem 1 WEEK
Honesty
o Flowchart Example Identify the different
Statements
Problem 2 Flowchart symbols
o Flowchart Example and solve problems 3&4
Problem 3 5. Counters and
using the symbols.
o Flowchart Example
Problem 4 Loops Precision
Explain the role of
conditional statement
CONDITIONAL STATEMENTS Activities
in flowchart design
o Flowchart Example Problem solving
Problem 5 flowchart problems
o Flowchart Example
Problem 6
Ennumerate the use
of Counter and loops
in program flowchart
and understand the
COUNTERS AND LOOPS
o Flowchart Example
importance in
Problem 7 program design
OBJECTIVES/ EVALUATIO
STRATEGIES/ VALUE
COURSE CONTENT LEARNING SCHEDULE N
ACTIVITIES WEBBING
OUTCOME
Machine
Identify and explain Discussion
SIMPLE C PROGRAM Patience Problem
the program parts of
o Parts of a C program solving
a C Language
o The printf() function program.
o Escape Sequence Understand
Topics focusing on
o Escape Sequence ing Basic c
Explain the printf() the ff.
Example programs
function.
1. Simple C Program
Precision
List and explain the
DATA TYPE use and importance of 2. Data type
Escape Sequence in C
o Int (Integer) Critical
Language. 3. Reasons to declare
Thinking
o Float Show and explain the variables
Week 6
examples given in WEEK
Prelim exam
o Double Escape sequence.
WEEK 9 Discussion
Machine
LOOPING STATEMENTS Explain the use of Patience Problem
Topics focusing on
looping statement in solving
o What are loops? the ff.
C Language
o Looping Statement Understand Looping
For 1. Looping
ing statement
While
Statements
Do While Define loops
o Syntax of the Looping Precision Oral
2. For Loop
statements Enumerate and recitation
For explain the different
Statement
While types of looping Critical
Do While structure use in C Thinking
3. While Loop
Language
WEEK
Statement
FOR LOOP STATEMENT
4. Do While loop
Show and explain the
9 , 10, 11
syntax of the different
Statement
looping statement.
5. Why do loops?
WEEK 10 Week 12
Exam
WHILE LOOP STATEMENT Explain the reasons
why use loops in
Activities
programming
Solve example
Show the examples
problems on looping.
using the for, while
WEEK 11 and do while looping
statements.
DO WHILE LOOP STATEMENT
OBJECTIVES/ EVALUATIO
STRATEGIES/ VALUE
COURSE CONTENT LEARNING SCHEDULE N
ACTIVITIES WEBBING
OUTCOME
Week 13
FUNCTIONS AS
SUBPROGRAMS Defines a function Discussion Critical
Machine
o Function Thinking
Topics focusing on Problem
the ff. solving
o Function (syntax) Explain the use of
Patience
Function functions in C- 1. Functions as Functions
Example 1: Problem Language Subprograms
Function
Example 2: Problem Understand
WEEK 2. Function
Function ing
Example 3: Problem Illustrate and explain
Function
3. Function (syntax)
the syntax of function.
Example 4: Problem Precision
13 Activities
Function
Example 5: Problem
Function Problem solving on
Example 6:
Analyze and explain Subprograms –
Simulation the examples in Functions
Program Simulation functions.
Example: 7
Program Simulation
Example: 8
OBJECTIVES/ EVALUATIO
STRATEGIES/ VALUE
COURSE CONTENT LEARNING SCHEDULE N
ACTIVITIES WEBBING
OUTCOME
WEEK 14 Critical
ARRAY Discussion
Define Array Thinking
o Array
o Example of Array 1. Array
Explain the function
o Two-Dimensional Arrays 2. Functions of Array
of array Patience Machine
3. Example of Array
syntax: WEEK Problem
4. Two-Dimensional
Array List the syntax used solving
Example 1: Problem Arrays syntax:
in array in C 14 Understandi
Example 2: Problem Language ng Array
Example 3: Problem Activities
Example 4: Problem Problem solving on
Show examples of
Example 5: Problem Array
Example 6: Program Code array in C language Precision
Example 7: Program Code
WEEK 15
STRINGS Define String
o String Patience
o Example of string data:
o Basic String Functions Describe the use of
• getch( ) String in C Critical
Discussion
• puts( ) Programming Thinking
• strlen( )
• strcpy( ) Topics focusing on Machine
• strcat( ) the ff. Problem
• strlwr( ) Demonstrate the use
solving
• strupr( ) of different string Accuracy
• strrev( ) WEEK Strings
function in c
• strcmp( ) Examples of String
• language.
strcmpi( ) 15 String Functions String
• strncpy( )
• toupper( )
• tolower( ) Activities
Honesty
String - Example 1: Problem
Show examples of
String - Example 2: Problem Problem solving on
String - Example 3: Problem String function in C
String functions
String - Example 4: Problem language.
String - Example 5: Problem
String - Example 6: Problem Precision
String - Example 7: Problem Design programs
String - Example 8: Problem Code using String functions
String - Example 9: Program Code in C Language.
OBJECTIVES/ EVALUATIO
STRATEGIES/ VALUE
COURSE CONTENT LEARNING SCHEDULE N
ACTIVITIES WEBBING
OUTCOME
Final Rating PG + MG + FG = FR
Average 3
X. SUGGESTED REFERENCES
A. BOOKS
Vine, M. (2008) C programming for the absolute beginner 2nd ed. Boston: Thomson Course Technology.
Farrell M. (2008) Computer programming for teens. Boston, Mass. Thomson Course Technology.
Wall, K. (2008) TCL and TK programming for absolute beginner. Australia: Thomson.
Farrell J. (2008) Programming Logic and Design 5th Edition. Australia: Thomson.
Herbert, C. W. (2007) Introduction to programming using Alice. Boston: Thomson.
Dietel, HM (2006) Visual C# 2005how to program. 2nd ed. New Jersey: Pearson Education.
McMillan M. (2006) Data Structure and algorithm using C#. New York: Cambridge.
Weis M. (2006) Data Structure and algorithm in C++. Boston: Person Addison Wesley.
Bronson, G. J. (2006) C++ for engineers and scientist. Australia: Thomson.
Hughes, A. (2005) Beginning programming. Indianapolis.
Nyhoff. L. (2005) Abstract data types, data structure and problem solving. Person Education.
Dos R. (2004) Assembly Language and computer architecture using C++ and Java. Australia: Thomson.
Savitch W. (2003) Problem Solving with C++: the object of programming. Addison Wesley.
Deitel, Deitel, (2002) C: how to program, 3rd ed. New Jersey: Pearson Prentice-Hall.
Deitel, H,M. (2001) C: how to program. New Jersey: Pearson Prentice-Hall.
B. INTERNET REFERENCES
http://www.mycplus.com/
http://www.csee.wvu.edu/~mvalenti/research.html
http://www.csee.wvu.edu/%7Emvalenti/documents/DOWLA-CH12.pdf
http://www.sandroid.org/TurboC/
http://www.at-mix.de/turbo_c.htm
http://www.borland.com/us/products/classic_products/index.html
http://99-bottles-of-beer.net/language-turbo-c-469.html
http://www.fsref.com/pr/tc.shtml
http://www.pricegrabber.com/search_getprod.php/masterid=3094830/
C. COURSEWARE
URC, ITC1 Courseware, 2006
D. JOURNAL
Journal of ACM
ACM Transactions of Computer System
Technology Review
Journal on Computing in Higher Education