0% found this document useful (0 votes)
69 views

CSC128 - Lesson Plan (1E)

This lesson plan outlines the topics and activities for a Computer Science course over one semester from June to November 2014. The course will cover: [1] introductions to computers, programming, and the program development life cycle; [2] basic elements of programs including variables, data types, operators, and input/output; [3] selection control structures like if/else statements; [4] repetition control structures like while loops; and [5] a group programming project. Students will learn through lectures, tutorials, labs, assignments, quizzes and a test.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views

CSC128 - Lesson Plan (1E)

This lesson plan outlines the topics and activities for a Computer Science course over one semester from June to November 2014. The course will cover: [1] introductions to computers, programming, and the program development life cycle; [2] basic elements of programs including variables, data types, operators, and input/output; [3] selection control structures like if/else statements; [4] repetition control structures like while loops; and [5] a group programming project. Students will learn through lectures, tutorials, labs, assignments, quizzes and a test.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Universiti Teknologi MARA

(Terengganu)
Kampus Dungun,
23000 Dungun, Terengganu.

LESSON PLAN
(Semester June 2014 – November 2014)

Course Code : CSC128 Program Code : CS110


Lecturer : Siti ‘Aisyah binti Sa’dan Group : CS1101E

WEE HOUR
DATE TOPIC ACTIVITY
K S
Topic 1: Introduction to Computer, Program and
Programming Language
 Introduction to Programming
o Definition of computer and computer program
2
o Importance of computer programming
o Importance of good programs.
Lecture & Tutorial
1 o Relationship between compilers, interpreters,
assemblers and programs
Topic 1: Introduction(cont’d)
 Program Development Life Cycle – Problem
3 analysis, design, implementation, testing,
maintenance (documentation)

Topic 2: Basic Elements of Computer Program


 Identifiers, variables, constants, and reserved
words
 Rules for naming identifiers
 Declaring data variables and constants
 Basic data types – integer, float, double, bool, char Lecture & Tutorial
3 (including sequence of characters without using Quiz 1
the string keyword) Assignment 1
 Arithmetic operators – addition, subtraction,
2 multiplication, division, modulus (excluding pre-
increment operator and pre- decrement operators )
 Arithmetic expression – unary and binary operands
 Operators precedence
Lab Session  Announcement of
project (a group of two
 Introduction to C++ Integrated Development
members)
Environment (IDE)
2  Rubrics and criteria of
 Compile and execute simple program
evaluation
 Debug and execute given programs

3 Topic 2: Basic Elements of Computer


Program (cont’d)
 Assignment statement (excluding compound
assignment statement such as += etc.)
 Assign (copy) a string (strcpy()).
 Introduce some mathematical library functions –
sqrt(), abs(), pow(), etc.
Lecture & Tutorial
3  Input/output statement (avoid arithmetic expression
in output)
 String input statement (gets(), getline(), etc.)
 C++ program structure
 Programming process, debugging and error
handling
 Four types of control structure – sequential,
selection, repetition/looping , modular
2 Lab Session Project proposal discussion
 Complete a source code base on problem that is and submission
being discussed
 Convert from a flowchart and pseudocode given to
WEE HOUR
DATE TOPIC ACTIVITY
K S
a program to get an output
 Debug and execute a given program (arithmetic
expression)

Topic 3 : Selection Control Structure


 Relational and logical operators
 Boolean expression and Boolean value Lecture & Tutorial
2
 Compound Boolean Expression Quiz 2
 Precedence of operators
4
Lab Session  Progress report of
project (stage 1:
 Debug and execute a given program (arithmetic
Analysis, Input, Output,
3 expression)
Process, Initial design
 Solve a given problem by applying arithmetic
of algorithm, source
expressions
code)
Topic 3 : Selection Control Structure (cont’d)
 Types of selection Control Structures
3 o One way selection
o Two ways selection
o Multiple selection
5
Lab Session Lecture & Tutorial
 Debug and execute a given program (selection
control structures)
2
 apply selection statement in decision making
problem
 enhance the usage of the formatting output symbol
 nested selection Lecture & Tutorial
3  switch statement Quiz 3
 string compare (strcmp()) TEST 1
Lab Session
6  Debug and execute a given program (nested  Progress report of
selection ) project (stage 2:
Algorithm refinement
2  Explain the output based on the various input from
including selection
the user
structure, source
 Solve problem using strcmp() function
code)
 Apply the nested selection to a given problem
Topic 4 : Repetition Control Structure
 Requirements – initialization, evaluation (condition)
3 and updating
 Types of repetition structure
o Counter controlled loop (while, do..while,for)
7
Lab Session Lecture & Tutorial
 Debug and execute a given program (repetition
control structures)
2
 Explain the output from the source code given
 Solve repetition problem using counter structure

Topic 4 : Repetition Control Structure (cont’d)


 Types of repetition structure
3 o Sentinel controlled loop (while, do..while)
o Flag controlled loop (Boolean variables) (while,
do..while,for)
8 Lecture & Tutorial
Lab Session Assignment 2
 Debug and execute a given program (repetition
control structures)
2
 Solve iteration problems using sentinel and flag
structures

Topic 4 : Repetition Control Structure (cont’d)


Lecture & Tutorial
3  nested loop (for statement)
Quiz 4
 continue and break statement
Lab Session
9 Progress report of project
 Debug and execute a given program (repetition
(stage 3: Algorithm
control structures)
2 refinement including
 Solve nested loop problems using for loop repetition structure, source
statements only code)
10 3 Topic 5: Function Lecture & Tutorial
 Introduction to function
WEE HOUR
DATE TOPIC ACTIVITY
K S
 Predefined function – introduce some common
mathematical functions
sqrt(), abs(), pow(), setw(), setprecision()
 Types of variable and its scope – block, local &
global
 User-defined function
o Function prototype
o Function definition (header and body)
o Function invocation
Lab Session
 Debug and execute sample program using
2 predefined function
 Solve a problem using predefined function

Topic 5: Function (cont’d)


 Types of parameter – actual and formal
3  Parameter passing
o Without parameter
o With parameter (by value)
11
Lab Session Lecture & Tutorial
 Debug and execute sample program using user-
defined function
2
 Solve a problem using user-defined function with
parameter passing by value

Topic 5: Function (cont’d)


3  Parameter passing (cont’d)
o With parameter (by reference)
Lab Session
12
 Debug and execute sample program using user- Lecture & Tutorial
defined function
2
 Solve a problem using user-defined function with
parameter passing by reference

Topic 5: Function (cont’d)


Lecture & Tutorial
 Return value
3 Quiz 5
o By value
TEST 2
o By reference
13 Lab Session
Progress report of project
 Debug and execute sample program using user-
(stage 4: Complete algorithm
defined function
2 design including function
 Solve a problem using user-defined function return structure, complete source
by value and by reference code)
 Group presentation
 Complete report
submission including
analysis, algorithm,
complete program
14 5 Incremental Project Presentation (meaningful identifiers,
correct indentation,
with appropriate
comments) and
samples of input and
output.

You might also like