CSEB113 Principles of Programming
_
LAB 8: STRING (ARRAY OF CHARACTERS)
For each problem below:
a) Analyze the problem by identifying input, output, formula, and constraint
b) Design an algorithm to solve the problem using pseudocode (so that you could
in
CSEB113 Principles of Programming
_
LAB 7: NUMERIC ARRAY
For each problem below:
a) Analyze the problem by identifying input, output, formula, and constraint
b) Design an algorithm to solve the problem using pseudocode (so that you could
include the pseud
C Programming Lab
Universiti Tenaga Nasional
1 Starting Dev-C+
Creating a new Project
1. From START menu, select:
Programs -> Microsoft Visual Studio 2010 -> Microsoft Visual Studio 2010
2. You are going to see this page (refer Figure 1).
Visual C+ Develo
CSEB113 Principles of Programming
_
LAB 6: FUNCTIONS PART 2
For each problem below:
a) Analyze the problem by identifying input, output, formula, and constraint
b) Design an algorithm to solve the problem using pseudocode (so that you could
include the ps
CSEB113 Principles of Programming
_
LAB 2: INTRODUCTION TO C PROGRAMMING
For each problem below:
a) Analyze the problem by identifying input, output, formula, and condition
b) Design an algorithm to solve the problem using pseudocode (so that you could
in
CSEB113 Principles of Programming
_
LAB 3: The Basic of C Part 2
For each problem below:
a) Analyze the problem by identifying input, output, formula, and condition
b) Design an algorithm to solve the problem using pseudocode (so that you could
include th
CSEB113 Principles of Programming
_
LAB 3: The Basic of C Part 1
For each problem below:
a) Analyze the problem by identifying input, output, formula, and condition
b) Design an algorithm to solve the problem using pseudocode (so that you could
include th
LAB 4: Decision Making Part 2 & LAB 5: Looping Part 1
For each problem below:
a) Analyze the problem by identifying input, output, formula, and constraint
b) Design an algorithm to solve the problem using pseudocode (so that you could
include the pseudoco
UNIVERSITI TENAGA NASIONAL
College of Information Technology
BACHELOR OF MECHANICAL ENGINEERING (HONS.)
BACHELOR OF CIVIL ENGINEERING (HONS.)
FINAL EXAMINATION
SEMESTER I 2011/2012
PRINCIPLES OF PROGRAMMING
(CSEB113)
August 2011
Time allowed: 3 hours + 10
CSEB113 Principles of Programming
_
LAB 5: Looping Part 2
For each problem below:
a) Analyze the problem by identifying input, output, formula, and constraint
b) Design an algorithm to solve the problem using pseudocode (so that you could
include the pseu
CHAPTER 8: Characters and
Strings
CSEB113 PRINCIPLES of
PROGRAMMING
by
Badariah Solemon
BS (May 2013)
1
Topics
1. More about characters
An integer digit vs. a character digit
Character handling library
2. Fundamentals of strings
What are strings?
Reading
CSEB113 Principles of Programming
_
LAB 6: FUNCTIONS PART 1
For each problem below:
a) Analyze the problem by identifying input, output, formula, and constraint
b) Design an algorithm to solve the problem using pseudocode (so that you could
include the ps
CHAPTER 2: Problem Solving
CSEB113 PRINCIPLES of
PROGRAMMING
By
Badariah Solemon
BS (May 2013)
1
Topics
1. Problem Solving and Programming
2. Structured C Programs Development
a)
b)
c)
d)
e)
f)
Specify the Problem
Analyze the Problem
Design the Solution
I
LAB 4: Decision Making
For each problem below:
a) Analyze the problem by identifying input, output, formula, and constraint
b) Design an algorithm to solve the problem using pseudocode (so that you could
include the pseudocode in your program)
c) Prepare
CHAPTER 6: Modular
Programming (Functions )
CSEB113 PRINCIPLES of
PROGRAMMING
by
Badariah Solemon
BS (May 2013)
1
Topics
1.
Introduction and Categories of Functions
2.
Built-in or Predefined or Standard Functions
Programmer-defined Functions
Working with
Principles of Programming
Control Structure
In 1966, two researchers, C. Bohn and G. Jacopini,
demonstrated that any algorithm can be
described using only 3 control structures:
sequence, selection and repetition.
1
Principles of Programming
Control Struc
Chapter 4: Basic C Operators
In this chapter, you will learn about:
Arithmetic operators
Unary operators
Binary operators
Assignment operators
Equalities and relational operators
Logical operators
Conditional operator
Principles of Programming - NI July20
CHAPTER 3: Introduction
to C Programming
CSEB113 PRINCIPLES of
PROGRAMMING
by
Badariah Solemon
BS (May 2013)
1
Topics1
1. Steps for Programming in C
2. Basic Structure of a C Program
Writing a Simple C Program
Using printf() Function to Display Text on Sc
1. Trace the following C program segment, and give the output when it is executed.
int x =9, y=2, z= 5;
printf("0 0 \n", x+, -y);
y = x+;
z *= y+;
z= y / -x;
printf("0 0 0 \n", x,y,z);
Solution:
Code
int x =9, y=2, z= 5;
printf("0 0 \n", x+, -y);
y = x+;
CHAPTER 1: Programming
Fundamentals
CSEB113 PRINCIPLES of
PROGRAMMING
by
Badariah Solemon
BS (May 2013)
1
Topics
1. Computer Programs and Programming
Introduction
Why Do Engineering Undergraduates Need to Take
Programming Course?
2. Programming Languages
METHODOLOGY
Population Of Rabbits
Month
1
2
3
4
5
6
Reproducing Pairs
(at least two months
old)
1
1
2
3
Young Pairs
(Less than two months
old)
1
1
1
2
3
5
Total Pair
1
1
2
3
5
8
In the first month, there are only one pair of rabbits ( R1) in the island
be
UNIVERSITI TENAGA NASIONAL
College of Information Technology
MID TERM TEST
SEMESTER II 2015/2016
PRINCIPLES OF PROGRAMMING
(CSEB113)
27th November 2015
Time allowed: 1 hour and 30 minutes
INSTRUCTIONS TO CANDIDATES
1.
The total marks for this exam is 60 m
Name of
Course
Lecturer
Student Name
ID
SECTION
Due date
PRINCIPLES OF PROGRAMMING
Course Code
CSEB113
RAMONA RAMLI
Semester
SEM 2 2014/15
(1)
(2)
(1)
(2)
1A / 1B (circle)
14 January 2015, before 5 pm (MOODLE)
Assesment
Assignment 1
Weightage
5%
Course Ou
CHAPTER 6: Functions
Modular Programming
CSEB113 PRINCIPLES of
PROGRAMMING CSEB134
PROGRAMMING I
by
Badariah Solemon
BS (May 2012)
1
Topics
1.
Categories of functions
2.
Built-in or predefined or standard functions
Programmer-defined functions
Working wi