You are on page 1of 10

>> www.unisel.edu.

my

Faculty of Industrial Information Technology

COURSE OUTLINE

IWD 1124
C++ Programming
Diploma in Mobile Technology

Semester 2/ 2008/2009 (Dec-Apr)

Lecturer : Izwan Suhadak Ishak (Mr. Su)


Room : Lecturer’s Room (Q)1, Level 2, FITM
Phone : 017 656 0102
Email : izwan@unisel.edu.my
Web : http://fiit.unisel.edu.my/izwan/
Group : G1

Course Synopsis
This course is to introduce the concept of programming and give an approach
in problem solving. This course also will help student to generate interest in
learning programming languages. By learning programming life cycle,
student will be exposed to the program development. Students also will be
getting used to the control structures, functions, arrays and etc.

Course Objectives
In this course student able to understand basic rules in programming, get
uses to problem solving technique-problem analysis, algorithm, and flowchart
and pseudo code. Besides that, student also will be exposed to technique in
writing subprograms and object oriented concept

Course Learning Outcomes


Successful students in this course can:

1. define and apply the programming concept


2. apply usage of data and variable in programming language
3. apply usage of different type of operators in programming language
4. apply the role of control structures
5. state and apply the concept of function
6. apply arrays and pointer in programming language
7. apply how to use character and string and file input
8. apply the concept of data structures
9. define the concept of class and object
>> www.unisel.edu.my

Lecture & Lab Schedule:

Tuesday Monday Wednesday


Day
(G1&G2) (G1) (G2)

Time 4.00 PM – 6.00 PM 5.00 PM – 8.00 PM 2.00 PM – 5.00 PM

Venue BK 9 GL 002 (MK 7) GL 105 (MK 9)

Consultation Hours:

Day Friday

Time 8.30 AM – 11.30 AM

Venue Lecturer Room

• Prefer during one hour after lecture or lab


>> www.unisel.edu.my

Weeks Topics Lecture Lab Hours


Hours
Outcome1: Define and apply the
programming concept

Students able to:


1. Identify the stages involved in
programming life cycle.
2. Differentiate between different
concept of language translator
(Compiler, assembler &
interpreter)
3
1.0 INTRODUCTION TO
1,2 PROGRAMMING
LANGUAGE
1.1 Programming language
1.2 Programming approach
1.3 Evaluation of
Programming
1.4 Language translator
1.5 Programming life cycle
1.6 Introduction to C++

Lab Exercise: 1 1
1. Familiarize student with the
concept of
programming language.
2. Identify programming life
cycle.
3. Show examples of good
program created using C++
>> www.unisel.edu.my

Outcome 2: Apply usage of data and


variable in
Programming language.
Outcome 3: Apply usage of different
type of
operations programming
language.

Student able to:


1. define how to declare variable
2. apply different type of
operators in the program code. 3

2.0 C++ FUNDAMENTALS


3,4 2.1 Program structure
2.2 C++ standard Libraries
2.3 tokens, identifiers,
variables and keyword
2.4 Basic data types
2.5 Constant
2.6 Declaring variables
2.7 Initializing variables
2.8 Operators
2.9 Escape sequences
2.10 Input/Output
2.11 Comment 2

Lab Exercise: 2
1. Familiarize student with the
variable declaration.
2. Identify the valid variable
declaration.
3. Write different style of
comment in C++.
4. Apply basic data type t(int,
double, char) that exist in C+
+.
5. Write variable initialization.
6. Differentiate between different
types of relational operator.

Outcome 4: Apply the role of control


structures

Student able to:


>> www.unisel.edu.my

1. apply the concept of if….else


statement
2. apply how to create algorithm,
pseudo code, and the coding
for problem involved of if…else
statement.
3. apply the concept of looping.
4. apply how the program can
repeat as long as meet the
condition. 5

3.0 SELECTION
5 3.1
3.2
if Statement
if-else statement
3.3 Nested if-else statement
3.4 if-else statement using
logical operators
3.5 Switch statement 4

4.0 ITERATION OR LOOP


6,7 4.1 WHILE loop
4.2 FOR loop
4.3 DO .. WHILE loop
4.4 nested loop
4.5 break statements and
continue 6
statement

Lab Exercise: 3
1. Familiarize student with the
concept of
if....else statement and
looping concept.
2. Write a code using if ....else
statement and nested
if.....else statement.
3. Write a code using if...else
statement with logical
operator.
4. Convert swith case statement
into if....else statement
5. Determine the output for
if.......... else program and
switch...case program.
6. Write a program using while
loopong concept.
>> www.unisel.edu.my

7. Differentiate between while


looping and do....while
looping.
8. Identify the output for looping
statement
9. Write program regarding break
statement and continue
statement.

8 Semester Break
Outcome 5: State and apply the
concept of function

Student able to:


1. define library function
2. define function and get use to
calling function concept
3. create user-define function

9 5.0
5.1
FUNCTIONS
Built in function 4
5.2 User defined Function
5.3 How to create and use
User-Defined
Functions
5.4 Variable scopes
5.5 Passing Arguments
5.6 Return values

Lab Exercise: 4
1. Write code using built in 4
function (eg: math() function).
2. Write code for user define
function and call the function in
main program.

Outcome 6: Apply how to use arrays


and
Pointer in programming
language.

Student able to:


1. define and declare an array
(One and two dimensional).
2. define and declare pointer &
understand how the pointer
>> www.unisel.edu.my

function in C++. 3

6.0 ARRAYS

10 6.1
6.2
One Dimensional Array.
Multidimensional array :
Two dimensional array 4

11 7.0 POINTERS
7.1 Pointer Variable
Declarations and
Initialization
7.2 Pointers and One
Dimensional Array

Lab Exercise: 5
1. Write a program to declare one
dimensional array.
2. Write program to key in
student marks (using for
looping concept and array
function)
3. Write a program using two
dimensional array.
4. Write a program to declare and
initialize pointers.

Outcome 7: Apply how to use


character and string and file input

Student able to:


1. identify character and strings
2. Differentiate between 4
character and string
3. create I/O file.

8.0 CHARACTERS AND 4


11 STRINGS
8.1 Characters
8.2 String
4
11 9.0
9.1
FILE PROCESSING
File Input and File
Output
9.2 Open and Close File

Lab Exercise: 6
>> www.unisel.edu.my

1. Write program to declare


character and string.
2. Usage of character and string
differentiated using a code.
3. Write code regarding input or
output file.

Outcome 8: Apply the concept of


data structures
Outcome 9: Apply the concept of
class and object

Student able to:


1. define and declare structural
variable.
2. define and describes class and
object 4

10.0 STRUCTURES
10.1 Declaring Structural
12 Variables
10.2 Accessing Structure
Member
10.3 Arrays of Structures
10.4 Nested Structures 4

11.0 INTRODUCTION TO
13 CLASS AND
OBJECT
11.1 A Class
11.2 Class Definition
11.3 An Object
11.4 Access Member of A
Class 2
11.5 Access Specifier

Lab Exercise: 7
1. Write program to declare
structural variable student .
2. Write program to access
member (student name,
student matric) of structural
variable student
>> www.unisel.edu.my

3. Write a program to define


class and object in object
oriented programming (OOP).
4. Write code to access the
member of class.

14 PROJECT PRESENTATION

15 REVISION WEEK - Final Exam Tips

TOTAL HOURS 42 21
EQUIVALENT TOTAL HOURS 42 14
TOTAL TEACHING HOURS 56

Main Module :

Saliyah Kahar, Fadzilah Che Fauzi dan Izwan Suhadak Ishak (2007) “Modul
Pengaturcaraan C++”

Extra References :

Gary J. Bronson (2006) “Program Development and Design Using C++”,


Brooks/ Cole Thompson Learning.

Hennefeld Baker Burchard(2003) “Using C++ - An Introduction to


Programming”, Brooks/ Cole Thompson Learning.

Don Gosselin (2002), “Microsoft Visual C++.Net”, Course Technology.

D.S Malik (2007), “C++ Programming: From Problem Analysis To Program


Design”, Third Edition, Thomson Course Technology.
>> www.unisel.edu.my

Assessments Course :

Assessments Marks Quantity


Lab Exercise (LE) 10 % 3+
Quizzes + Commitment 10 % 3+
Project 20 % 1
Mid-Term Test (Paper + Lab) 20 % 2
Final Exam 40 % 1
TOTAL 100 % 10

Important Notes:

1. Students who are absent for more than 80% of the prescribed classes
can be barred from final exam which will result into receiving no grade
for the paper.

2. Using information from other sources and not citing the source is
plagiarism, a form of CHEATING. When you are working with other
students, please remember that failing to contribute adequately to the
project but taking full credit for other(s) efforts is also a form for
cheating. If you are caught CHEATING or TRYING TO CHEAT in your
assignment(s), quiz(s), test(s) or final exam, you can and will be
punished accordingly

3. Students attending the class must follow and adhere to the


University’s dress code. Any student caught not adhering to said dress
code can and will be prohibited from attending my class(s) and any
loss resulted from his/her absentee regarding this matter will be
his/her own liability.

4. Students at all time should maintain good manners with lecturers and
other university’s staff.

5. Respect lecture and other student’s times and rights. No paging,


messaging (SMS) or telephoning is allowed during class.