Você está na página 1de 6

PRACTICAL ASSIGNMENT:1:

SUBMISSION DATE: 20/9/2013.


SIGN.OF SUBJECT INCHARGE:
________________________

NAME: ____________________.
CLASS: _____________________.
DIVISION: _____________________.
ROLL.NO: ____________________.
SUBJECT: ____________________.
PRACTICALS

Unit-1

Programmatic logics and techniques

1. Write an algorithm for the following:-
1. Accept a number and check the number is even or odd.
2. Find the area and perimeter of a rectangle.
3. To convert the temperature taking input in Celsius scale to Fahrenheit scale.
4. To read two number A and B and compare them



___________**___________
















PRACTICAL ASSIGNMENT:2:

SUBMISSION DATE: 20/9/2013.
SIGN.OF SUBJECT INCHARGE:
________________________

NAME: ____________________.
CLASS: _____________________.
DIVISION: _____________________.
ROLL.NO: ____________________.
SUBJECT: ____________________.

Unit-2
Simple programs

1. Write a program to find the area and volume of a rectangle.
2. Unary operator with proper example.
3. Write a program to illustrate the use of bitwise operator.
4. Write a program to calculate the sum of the entire digits in a three digit number.
5. Program to explain conditional operator.
6. Write a program to reverse a two digit number.(eg: reverse of 25=52)
7. Write a program to illustrate the use of bitwise operator.


--------------------**--------------------

















PRACTICAL ASSIGNMENTS:3

SUBMISSION DATE: 25/9/2013.
SIGN.OF SUBJECT INCHARGE:
________________________

NAME: ____________________.
CLASS: _____________________.
DIVISION: _____________________.
ROLL.NO: ____________________.
SUBJECT: ____________________.
PRACTICALS
Unit-3
Flow of controls
1. Write a program to print 5 numbers between 50 10 100 which are divisible by 7.
2. Write a program to add two integer numbers without using arithmetic operator +
between the both the integer number.
3. Write a program to compare two integer values without using comparison operator (>
or<).
4. Write a program to display factorial of a number.
5. Write a program to reverse a given number.
6. Write a program to accept a number from the user and print the addition of all the
digits in that number.
2. To swap two integer values.
3. Write a program to print the Armstrong number between (1 to 1000).
4. Write a program to print Fibonacci series using c++ syntax.
5. Break, continue and switch case statement with a proper example.
6. Write a program to print:
(a) 1 2 3 4 (b)
2 3 4
3 4
4
7. Write a program to check whether a value is prime number or not.

_______________**_______________
1
2 3
4 5 6
7 8 9 10





PRACTICAL ASSIGNMENTS:4

SUBMISSION DATE: 25/9/2013.
SIGN.OF SUBJECT INCHARGE:
________________________

NAME: ____________________.
CLASS: _____________________.
DIVISION: _____________________.
ROLL.NO: ____________________.
SUBJECT: ____________________.
PRACTICALS
Unit-4
Functions:
1. Create four different user defined function called addition with the four different
categories of function prototyping.
2. Write a program for square of a number using inline function.
3. Write a program to overload a function volume to calculate volume of a cube, cylinder
and rectangle.
4. Write a program to overload a function area to calculate area of a square, rectangle
and triangle.
5. Write program to print factorial of a number using recursive function.
6. Write a program to overload a function square to calculate square of a int,float and and
long respectively.

____________________**_______________
















PRACTICAL ASSIGNMENT:5

SUBMISSION DATE: 28/9/2013.
SIGN.OF SUBJECT INCHARGE:
________________________

NAME: ____________________.
CLASS: _____________________.
DIVISION: _____________________.
ROLL.NO: ____________________.
SUBJECT: ____________________.

Unit-5
Derived data types (Arrays and pointers)
1. Write a program for swapping two integer values using call by value function
argument.
2. Write program to print factorial in c++ which will accept one parameter of integer
data type and also return a value of integer data type.
3. Write a program to count total number of positive values, negative values and zeros
in one dimensional array.
4. Write a program for 3x3 two dimensional matrix addition.
5. Illustrate with an example how to pass one dimensional array to a function.
6. Write a program to sort all the values in an integer array in descending order.
7. Addition of two numbers using pointer concept.
8. Write a program to swap two integer values using pointer to function.

_______________________**___________________










PRACTICAL ASSIGNMENT:6:

SUBMISSION DATE: 28/9/2013.
SIGN.OF SUBJECT INCHARGE:
________________________

NAME: ____________________.
CLASS: _____________________.
DIVISION: _____________________.
ROLL.NO: ____________________.
SUBJECT: ____________________.
PRACTICALS

Unit-6
String manupulation, Structures and vectors

1. Write a program in c++ to store student details like student name, roll no., marks
for three subjects using structure and print the above details.
2. Write a program in c++ to store customer details like customer name, customer id,
e-mail address, telephone no, gender and print the above details.
3. Write a program in c++ to store employee details like employee name, employee
Id, department name, telephone number and city using structure and print the
above details.
4. Write a program to show the use of all string manipulation functions in string.h.
5. Define vector in c++.also write a program to create a vector to accept ten numbers
and print them in reverse order.

-----------------------------**----------------------------

Você também pode gostar