Vous êtes sur la page 1sur 4

FACULTY OF COMPUTER AND MATHEMATICAL SCIENCES

UNIVERSITI TEKNOLOGI MARA


Course Title
Course Code
Level
Course Status
Pre-requisite

:
:
:
:
:

Introduction to Computer Programming


CSC425
Credit Unit
: 3
Bachelor
Contact Hours : 4
Core
None

Resource Person (RP)/Lecturer


Office
Telephone No.
Email address

:
:
:
:

Saiful Nizam Warris


Pej. JSKM
013-9443605
saifulwar@ppinang.uitm.edu.my

OBJECTIVES
At the end of the course, students should be able to:

Identify the steps in problem solving

Be familiar with the basic concepts of programming (using C++ programming


language and Borland C++ compiler)

Understand the software development and programming process


SYLLABUS CONTENT
1.

Introduction to Programming Language

2.

The Components of Programming Language

3.

Control structure

4.

Functions

5.

Arrays

TEACHING METHODS
Lectures will be conducted in the classroom. Hands-on sessions will be carried out in
the computer laboratory.
ASSESSMENT

Lecture (30%):
Tests (2 x 10%)
Quizzes (3-4)

:
:

20%
10%

Lab (30%):
Programming Assignments
Mini project

:
:

20%
10%

Final Examination

40%

RECOMMENDED TEXT
D.S. Malik ; C++ Programming From Problem Analysis to Program Design; 2nd
Edition, Thomson CourseTechnology.

REFERENCES
1. Rosenah A. Halim, Introduction to Programming for Scientists and Engineers,
UPENA, 2008.
2. Cay Horstman, Computing Concepts with C++ Essentials, 2nd edition, John Wiley,
1999.
3. Kenneth A. Lambert, Nance, Understanding Programming and Problem Solving
With C++, West Publishing, 1996.
4. Bronson, Gary J, C++ for Engineers and Scientists, PWS Publishing Co., 1998.
5. Deitel & Deitel , C++: How To Program, Prentice Hall, 1996.

SCHEME OF WORKS
CSC425 (INTRODUCTION TO COMPUTER PROGRAMMING)
SEMESTER SEPT 2014 JAN 2015
Week

1
8/9 12/9

2
15/9 19/9

3
22/9 26/9

Topic
TOPIC 1: INTRODUCTION
Brief history of C++
Preparation for programming
What is a computer program and importance
of computer programming
Importance of good programs. Relationship
between compilers, interpreters, assemblers
and programs
Lab: Introduction to Borland C++ Compiler
Program Development Life Cycle
Problem solving phases: problem definition,
algorithm design and implementation
Analysis, design, coding, maintenance
Lab: write, compile and run sample programs
TOPIC 2: COMPONENT OF PROGRAMMING
LANGUAGE
Identifier, variable, constant, statement
Standard data type (int, float, double, char)
Input/output statement
C++ block structure
Lab: extend sample program; sample program on
addition, subtraction, average
Arithmetic expressions
Operators - Unary operator ++, -Assignment concepts

Hour
s
2

Lecture /
Discussion

Lab session

Input & Output


stream

Lab session

.Quiz 1
Data type
manipulation

Lab session

4
29/9 3/10
Lab: Operator manipulation (addition, subtraction,
multiplication, division, modulus)

Description

Exercise given
on I/O
manipulator
Assignment 1
Lab session
Operator
manipulation

4/10 12/10 MID TERM BREAK


2

5
13/10 17/10

6
20/10 24/10
(23/10 public
holiday
deepavali)

7
27/10 31/10

TOPIC 3: CONTROL STRUCTURE


Concept
Selection : type of if statement
- One- way
- Two -way
Lab: Writing program using if statement

Lecture /
Discussion
Quiz 2

Lab session

Selection ctd
Multi-way selection using if statement
Nested if

Lecture /
Discussion
Assignment 2

Lab: Writing program using if statement

Lab session

Lecture /
Discussion
Quiz 3

Lab session

Selection ctd
Selection : Using switch statement
Repetition: concept of counter and sentinel
loop
Repetition : Using for (as counter loop)
Lab: Writing program using multiple selection
(switch) statement and for loop

8
3/11 7/11

9
10/11 14/11

10
17/11 21/11

11
24/11 28/11

Loop ctd
while statement (as counter and sentinel
loop)

Lab: while statement

Loop ctd
do..while statement
Nested loop

Lab: while statement, nested loop

TOPIC 4: FUNCTION
Introduction to function
Predefined function
sqrt( ), abs( ), pow( ),
setprecision( )
Function without parameter
Calling function

Lecture /
Discussion
Test1
Assignment 3
Lab session
Lecture /
Discussion
Mini project
assignment
(group)
Lab session

Lecture /
Discussion
setw( ),

Lab: Writing functions without parameter and no


return value
Function with parameter
Pass by value
Pass by reference
Function with return value

Lab session

Lecture /
Discussion

Lab: Writing functions with parameters

Lab session
3

- Passing by value
Writing functions with return value
Function with parameter
Pass by reference

Lecture /
Discussion
Quiz 4

Lab: Writing functions with parameters


- Passing by reference
TOPIC 5: ARRAY
Introduction to array
One-dimensional array
char[]

Lab session

Lecture /
Discussion
Assignment 4

Lab session

Lecture /
Discussion
Test 2

12
1/12 5/12

13
8/12 12/12
(11/12 Hari
Keputeraan
Sultan
Selangor)

14
15/12 19/12

Lab: Declaring array, setting size of array, reading


from an array, storing values into array, comparing
values in array. read key-in names, address, strcpy(
)
Array (ctd)
Array operations:
summation and average
min/max
counting and searching
Lab: solve problem using related array processing

Lab session
Demo on mini
project

Vous aimerez peut-être aussi