Course Contents
description
Transcript of Course Contents
-
1
Course Number: MEng 1052 Instructor: Addisu D.
Course Title: Computer Programming Academic year: 2014/2015
Credit hours: 3 Class Year: II Semester: II
Course Objectives:
The course enables students to know:
The major components and functions of personal computers (Hardware: I/O devices,
CPU, memory; Software: System software, Application software)
How to write a syntactically correct C++ programs to solve ordinary mechanical
engineering problems.
Course Contents:
1. Introduction to Computers and Programming
1.1. Computer systems: Hardware, software, highlevel languages, compilers
1.2. Programming and Problem solving: Algorithms, Program design
1.3. Introduction to C++: Origins of the C++ Language, A sample C++ Program, Layout of a
simple C++ program, Compiling and Running a C++ program, Testing and Debugging,
kinds of program errors
2. C++ Basics
2.1. Variables and Assignments: Variables, Identifiers, Variable Declarations, Assignment
Statements
2.2. Input and output: Output using cout, Include Directives and Namespaces, Input using cin
2.3. Data Types and Expressions: The types int and double, other data types, the type char,
Arithmetic Operators and Expressions
3. Flow of Control
3.1. The if-else statement
3.2. The while statement, and the do-while statement,
3.3. The switch statement,
3.4. The for statement
DEBRE MARKOS UNIVERSITY
TECHNOLOGY COLLEGE
MECHANICAL ENGINEERING DEPARTMENT
-
2
4. Functions
4.1. The need for functions
4.2. Types of Functions
4.3. Functions with no parameters
4.4. Function with parameters
4.5. Call-by-value parameters
4.6. Call-by-reference parameters
5. Arrays and Strings
5.1. Arrays: Initializing Arrays, Declaring Arrays, Accessing Arrays
5.2. Multidimensional Arrays: Initializing Multidimensional Arrays
5.3. Strings: String Manipulation
6. Miscellaneous topics (optional):
Teaching Methods:
Lectures supported by assignments, and
Laboratory exercises (Practice in Computer Center every week on each topic/subtopics)
Attendance Requirement:
Minimum of 75% attendance during lecture hours; and
100% attendance during practical work sessions, except for some unprecedented mishaps.
Evaluation:
Assignments =10%,
Practical Tests in Lab: 20%,
Project: 20%
Final Examination: 50%.
References:
1. Stanely B.Lippman Josee Lajoie, C++ primer (3rd ed.), 2001.
2. Bjarne Stroustrup, Programming Principles and Practice Using C++ , 2008
3. Bjarne Stroustrup, The C++ Programming Language, 4th ed., 2013
4. Frank L. Friedman and Elliot B. Koffman, Problem Solving, Abstraction and Design Using
C++, Visual C++.NET Edition, Aug 29, 2003.
5. Lafore, R, Object-Oriented Programming in C++, 3rd ed., 2001.
6. Friedman and Koffman, Problem Solving, Abstraction, and Design Using C++