Thursday 11 August 2016

CLASS-XI BASIC PROGRAMS IN C++





SIMPLE PROGRAMS IN C++

1.                  Write a program to calculate the area and perimeter of rectangle and square.
2.                  Write a program to calculate the area and circumference of a circle.
3.                  Write a program to calculate the surface area and volume of a cuboid.
4.                  Write a program to calculate the area of a triangle using heron’s formula.
5.                  Write a program to enter the temperature in Fahrenheit and convert into Celsius
6.                  Write a program to calculate the speed of a vehicle.
7.                  Write a program to swap two integer numbers by using third variable.
8.                   Write a program to swap two integer numbers without using third variable.
9.                   Write a program to calculate the discriminant of a quadratic equation.
10.               Write a program to enter the salary of an employee and calculate the gross salary and net salary as per the following : (salary !=0)
              (Gross Salary=Basic+HRA+DA)
             (Net Salary=Gross Salary-PF)

HRA
DA
PF
5% OF Salary
2% Salary
12% of salary



No comments:

Post a Comment