Beruflich Dokumente
Kultur Dokumente
COURSE OBJECTIVES:
The course presents basics of C++ programming including: Basics of C++ environment, Data
representation, Control structures, Functions, Arrays, Pointers, Strings, and Classes that aims to:
1. Arm the students with the basic programming concepts.
2. Introduce different techniques pertaining problem solving skills
3. Arm the students with the necessary constructs of C++ programming.
4. And to emphasis on guided practical sessions
LEARNING OUTCOMES:
Upon completion of this course, students should be able to:
1. Write clear, elementary C++ programs.
2. Understand algorithmic thinking and apply it to programming.
3. Understand problem-solving techniques.
4. Code with C++ arithmetic, increment, decrement, assignment, relational, equality and logical
operators.
5. Code C++ control structures (if, if/else, switch, while, do/while, for) and use built-in data
types.
1. Study the basic concepts of C++ and compare program structure with C
2. Write a C++ program to find the largest of three numbers using inline function.
3. Write a C++ program to sort an array of integer in ascending order using a function
called exchange( ) which accepts two integer arguments by reference.
4. Study the basic concepts of OOP with clear examples
5. Write a C++ program to implement function overloading in order to compute
power(m,n) where i) m is double and n is int ii) m and n are int.
6. Create a 'DISTANCE' class with :
- feet and inches as data members
- member function to input distance
- member function to output distance
- member function to add two distance objects
Write a main function to create objects of DISTANCE class. Input two distances and
output the sum.