Vous êtes sur la page 1sur 5

SERIA

PROGRAMS PAGE
SIGNATUR
L
NO. E
NO.

1 Declare a structure having following members 5


– Customer no. , no. of units consumed and bill.
The bill is to be calculated according to the
following conditions

2 Declare a structure to represent a complex 8


number (a digit having real part and imaginary
part). Write a program to add, subtract,
multiply and divide two complex numbers.

3 Write a program to accept the name and total 10


marks of 10 students in an array. Display the
names of the students (including marks)
securing the highest and lowest marks using
structures.

4 Write a menu driven program to: 13


Read an integer array

Sort it using Bubble sort

Search an element using Binary Search

5 Define a class named ADMISSION in C++ with 16


the following descriptions:

6 Define a class travel in c++ with the 20


description given below

7 Define a class compdata 24


SERIA
PROGRAMS PAGE
SIGNATUR
L
NO. E
NO.

8 Wap using multiple inheritance for the classes 26


student, game and person

9 A program to illustrate Multiple Inheritance 32


10 Write a program to read a telephone directory 36
with name, phone no. and write it to a file in
the form of “hi<<name<<your no. is<<phone
no.”.

11 Write a program to store data of students 38


registering in BIS – adm no., name, address,
DOB, class and section. For every new
registration assign a roll no. in sequential order.
Read this file and display roll no., name, class,
and section

12 Write a menu driven program to: 43


Read the file and display uppercase vowels,
lowercase vowels, uppercase consonants,
lowercase consonants.

13 Declare a class containing: 47


Name

Address

Telephone no.

Write a menu driven program to:

Append record in a file.

Display the name and add61ress for the


given telephone number

14 Declare a class students having sno, sname, 52


fees and required functions. Write a ,menu
SERIA
PROGRAMS PAGE
SIGNATUR
L
NO. E
NO.

driven program to:

Append record in a file

Delete record for given serial no.

15 Program to search an element of array using 57


linear search method.

16 Program to sort an array in ascending order 61


using Selection sort

17 Write a program to accept a 2D array of 64


integers and its size as arguments and displays
elements which are exactly two digit numbers.

18 Write a menu driven program to perform the 66


following operations on a string without
using inbuilt functions:

Find the length

Compare two strings

Concatenate two strings

19 Write a menu driven program to: 71


Read an integer array

Sort it using Bubble sort

Search an element using Binary Search

20 Write a program to illustrate working of 74


SERIA
PROGRAMS PAGE
SIGNATUR
L
NO. E
NO.

function overloading

21 Each node of a queue contains: 76


Eno

Salary

Pointer field

Front is the first node of the queue and rear is


the last node. Write a menu driven program to:

Add elements in the queue

Delete elements from the queue

22 Each node of a stack contains: 81


Rollno

Age

Pointer field

Top is the first node of the stack. Write a menu


driven program to:

Push an element

Pop an element

24 Create a linked stack and perform push and 89


pop operations.

25 Create a linked queue and perform addition 92


and deletion operations.

26 Implementation of a queue as a circular array 95


SERIA
PROGRAMS PAGE
SIGNATUR
L
NO. E
NO.

27 Create a table in SQL with the name Students 99

Vous aimerez peut-être aussi