## Ex.No:2a Static Data and Function Members

AIM:           To write a C++ program using static data member and static member function. ALGORITHM: STEP 1: Start the program. STEP 2: Declare static variable ‘count’. STEP 3: Define static variable...

## Ex.No:1 Student Database using Classes and Objects

AIM:           To write a C++ program to create a student database using classes and objects. ALGORITHM: STEP 1: Start the program. STEP 2: Declare the data members. STEP 3: Define the...

## Ex.No:5 solving problems using String functions

AIM:          To write a C program to illustrate any five string functions. ALGORITHM: Step 1: Start the program. Step 2: Read the string str1 and choice. Step 3: If choice is...

## Ex.No:4c Sorting

AIM:          To write a C program to sort an array of n integers. ALGORITHM: Step 1: Start the program. Step 2: Read the array a. Step 3: Repeat for i ←...

AIM:          To write a C program to illustrate menu-driven Programming. ALGORITHM: Step 1: Start the program. Step 2: Read choice and num. Step 3: Repeat till a valid choice. Step 3a:...

## Ex.No:3e Triangle Of Numbers

AIM:         To write a c program to print triangle of numbers. ALGORITHM: Step 1: Start the program. Step 2: Declare the variables i,j,k,l and n as “int” datatype. Step 3: Read  N numbers of...

## Ex.No:3d Program To Find The Exponent Of The Given Number

AIM:          To write a c program to find the exponent of the given number. ALGORITHM: Step1: Start the program. Step 2: Enter the X and n Value. Step 3: Set a...

## C Program to Calculate Slope and Midpoint of a given Line Segment

Before going to the program first let us see what is Slope and Midpoint of a Line and how to calculate it? Slope of a Line:                    The Slope of...

## Ex.no:2e Area of a triangle

AIM:         To write a C program to find the area of a triangle given the length of three sides. ALGORITHM: Step 1: Start the program. Step 2: Read the side lengths...

## Ex no:2d Evaluate the expression

AIM:          To write a C program to evaluate x = 8t2-t+4 y=sin 30◦ z=e3t+5  ALGORITHM: Step 1: Start the program. Step 2: Read t. Step 3 : Calculate x = 8t2-t3+4...