OLE! PROFESIONAL MARA BERANANG
w DIPLOMA IN COMPUTER SCIENCE 0S)
PROGRAMMING FOR COMPUTING
cscii6s
Semester Jan-May 2019
Learning Support Time +84 hours (6 hours 14 weeks)
Course Learning Outcome (C10):
(aa foton ina computer program 2
2. Groducea computer program using array)
3: (Deronetrate struct ina computer prograr’
vise te develoged rogram into a progam code soklon,)
‘SCHEME OF WORK
'PRE-DEFINED FUNCTIONS/METHOD
Formatting
Character manipulation < ctype.h>
String manipulationestring.h>
‘Mathematical Fomulation
Date & Time
oooco
USER-DEFINED FUNCTIONS.
Why use function
syntax
Function prototype
+ Function definition
& Function call reed
+ cally value 1 fi
+ catbyrefrnce ic anoe | aaa
4 Structure of Functions
Types of Parameter Passing
+ Functions without
parameter
+ Funetions with value
parameter
+ Functions with
reference parameter
Scope of variables
+ Global parameter
+ Local parameter
& Indine function
4 Recursive Function69
ARRAY
Why use array
Basic concept and structure of array
Array index
> Rules
Array Declaration
=
smn,
ope
+
Accessing arrays elements
+ Operation On Single Dimensional
array
+ Manipulating elements
inarray
+ Searching elements in
array
+ Arranging elements of,
array
+ Swapping and sorting
array elements
+ String manipulation in
erray
0-11
Two Dimensional Array
Array Declaration
Array Initialization
Operation On Two
Dimensional Array
+ Manipulating elements
inarray
+ Searching elements in
array
+ Arranging elements in
nd sorting
array elements
+ Array as an argument to
functions
Project 2
Date Out:
15/02/2019
Date In:
22/03/2019
2
STRUCT FUNCTIONS
Declaration & Object Creation
4 Structure code of struct
Operation on structs
Manipulating structs
Project2
Date Out:
22/03/2019
Date In:
05/04/2019Struct as an argument to a functions
13 4 Introduction to struc as array 3
parameter
4 Structure of code
‘TEST AND VERIFICATION PROGRAM.
% Debugging
Checking naming conventions
Checking functionality against
+
requirements
Error detection
Syntax error
+ Semantic error
+ Logic error
14
4 Error messages
Test documentation
* Testplan
+ Test schedule
Practical Test
Date Out / in:
2/04/2019
‘Assessment Grading Schome
Ravessment
Final am
Project 3
40%
30% Saye
Project 2
Practical Tet
‘overall Grading Scheme
excellent
Good
Satisfactory
Pass
railReferences:
Stroustrup, 8 (2013) The C++ Programming Language, 4” Edition. UK, : Pearson Education inc.
Short, T. (2016). C#+ Beginner to Pro Gulde. US: DCB Web Trading Ltd
Prata, S. (2012). C++ Primer lus, 6" Editon, UK Pearson Education Inc
Stroustrup, 8 (2014) Programming Principles and Practice using C+¥. UK: Pearson Education
Inc
5, Josutis M,N, (2032). The C++ Stondard Library: A Tutorial and References. UK:: Pearson
Education ne
6, Mueller John, P, Cogswell J. (2015). C++ Allin One for Dummies. New Jersey : John Wiley and
Sons Inc.
Verification
Course Lead Internal Verifier Course Cogrdinatar™
Sian Sign OP oe
initial IHN | Initial #4 Tait
Date, e/a] 70g | Date 34/1271 | Date