Presented here are Lab works and sessions in C++ programming language and each program or lab work consists of one or related more objects. Errors have been tried at their max to be eliminated however you must accept if any. Please, note that all this work is the raw presentation of the classroom assignment in computer programming for basic learners in C++. |

**Click on each object#** to proceed
OR **Search for more C++ codes** & programs above if you don't like to scroll
down.

Exercise on writing, compiling and executing sample program in C++ie

>> Program to convert Celsius into Fahrenheit scale using manipulators and specified display

To understand various control structures and functions, structured programming in C++

>> Program to print various * patterns and structures

Program to find 2nd highest of a list of 10 numbers by comparing numbers

Program to compute value of exponential series

Program to convert binary numbers to decimal and vice versa

Program to find the sum of digits of an integer and continue summing the digits till the last sum is single digit ie for 157 > 1+5+7=13 > 1+3=4

WAP
to sum sequence of integers. Assume that the 1st integer read specifies the no
of values remaining to be entered,

your program should read only one
value per input statement

Understanding function prototype, body and parameter passing by valueProgram to compute factorial of a number by recursion

example of parameters passing by value

Understanding parameter passing by referenceProgram to compute area and perimeter of a circle

example of parameters passing by reference

Understanding inline functions

Program to find the greater of the 2 input numbers

Understanding function overloadingProgram to sum 2 to 3 numbers using function overloading concept

Program which has a function called area that returns area of a circle with a single input and that of rectangle with 2 inputs

Program which has a function called area that returns area of a circle with a
single input and that of rectangle with 2 inputs

**Example of function overloading**

Program which corresponds between entered number or/and character

**
**WAP to calculate interest using function,
**using trailing arguments, default value**

Passing structure to a function and returning structureWAP to add two distances using function. Each distance consists of feet and inch. The function should return the resultant structure, print the result from another function as (5'7")

Passing structure using referenceRewriting the above program ie Obj 16 using a reference parameter to return the result of addition

**
**Illustration
of classes in c++

This page is Linked at EntranceNepal.com and http://EntrancePreparation.blogspot.com

**Disclaimer:**
All program codes have been tested successfully on Turbo C++ however the author
doesn't take any responsibilities for errors.

The crude materials presented
herein are solely for educational purposes and are explicitly written by
students including the author himself.

© Protected under
Creative Commons License.

Written by Ekendra Lamsal,
www.ekendralamsal.com

For comments email at gmail address:
gearShifts@gmail.com

Last Modification date: Wednesday, March 21, 2007 10:29:31 PM