Download C++ Programs


Program to read two numbers from the keyboard and display the larger value on the screen.
Program to input an integer value from keyboard and display “WELCOME” that many times on screen.
Program to calculate x= a/b-c.
Program to convert temperature from feranhit into celcius.
Program to check whether given number is perfect number or not. (A perfect no are those number which are equal to sum of all their factors e.g. 6=1+2+3)
Program to create function using reference as argument to swap the value of pair of integer.
Program to calculate x = (a*a - 2*a*b + b*b)/(2*a*b)
Program to read the names of Electricity users and number of unit they consumed and print out the charges with name.
Program to arrange N numbers in ascending order.
Program to arrange N numbers in descending order.
Program to sort elements of an array in ascending or in descending order using switch case.
Program to find maximum number from array.
Program using function which receives an integer N as an argument and returns sum of all the even numbers up to specified number N.
Program to find the sum of following series
sin x = x-x3/3!+x5/5!-x7/7!+.......
Program to find the sum of following series
sum = 1 +(1/2)2 + (1/3)3 +.......
Program to find the sum of following series
cos x = 1-x2/2!+x4/4!-x6/6!+.......
Program using Function to read a matrix of size m X n from the keyboard and display it on the screen.
Program using Function to read a matrix of size m X n from the keyboard and display the same on the screen. Make row parameter of the matrix as a default argument.
Program to find maximum from three numbers using inline function.
Program to calculate an area and circumference of a circle using inline function.
Program using Function power () to raise a number m to power n. The function takes a double value for m and integer value for n, and returns the result correctly. Use a default value of 2 for n to make the function to calculate squares when this argument is omitted. Write a main that gets value of m and n from user to test the function.
     

Program using Function power () to raise a number m to power n. The function takes a double value for m and integer value for n, and returns the result correctly. Use a default value of 2 for n to make the function to calculate squares when this argument is omitted. Write a main that gets value of m and n from user to test the function. Write another function with same name which takes integer value for m. Write a main that calls both functions. Use concept of function overloading.
Program to Define a class to represent bank account. Include the following members:
Data Member
(1) Name of the depositor
(2) Account Number
(3) Type of account
(4) Balance in the account
Member Function
(1) To assign initial value
(2) To deposit an amount
(3) To withdraw an amount
(4) Display name and amount
Write a main program to test class.
Program to Define a class to represent bank account. Include the following members:
Data Member
(1) Name of the depositor
(2) Account Number
(3) Type of account
(4) Balance in the account
Member Function
(1) To assign initial value
(2) To deposit an amount
(3) To withdraw an amount
(4) Display name and amount
Write a main program to test class for 10 Customer.Use array of Object.
Program using class to add two complex numbers.
Program to create a class time and add two times T1 and T2(hh:mm:ss) Inputted from keyboard and display sum of two times in the same format.
Program to input data for 5 employees with detail like name, employee number, salary, income tax, designation using class.
Program using class to add two 3 X 3 matrix.
Program that will ask for a temperature in feranhit and display it in celcius using class temp.
Program to create Distance class to add two distance having member variable feet and inch (use object as function argument)
Program to prepare mark-sheet for diploma egg students, create a class student as base class and TW and EXT as derived class from it, result class is derived from these two classes TW and EXT, use virtual base class properties for 60 students data.
Program in c++ to implement multilevel (2 level minimum) inheritance.
Program to access an array elements and print then in reverse order using pointer.
Program to display prime numbers in between 1 to 150.
Program to enter at least 10 numbers. Count the positive and negative numbers. Use classes and objects
Program to read basic salary and calculate HRA as 20% of basic, DA as 65% of basic, and Income Tax as 10% of basic, finally the program should display net salary after deduction of tax.
Program to find out sum of all digit of given number by using call by value.

Download Projects


Download Programs