You are on page 1of 2

LIST OF PRACTICALS OF CLASS XII (Computer Science)

S.No Practical Date


1 Write a program to sum first N terms of the following Series
1 + X/2! – X2/4! + X3/6! - X4/8! + ………………………
2 Declare a structure result with following members- Roll no., name, marks for
5 subjects, total, percentage & grade.WAP using above structure to take data
form for N students and display result sheet in the following format:
Roll Name Eng Phy Chem Math Comp Total Per Grade
No.

3 Write a menu based program to calculate area of circle, rectangle and triangle
(hero’s formula) on the basis of user’s choice. Design the family of function
using same main area using function overloading.
4 Declare a class Account to represent bank account of customers with the
following data members. Name of the depositor, account no., type of
account(S for saving and C for current), balance amount. Write a program
using above class to do the following:
• To initialize data members.
• To deposit money.
• To withdraw money after checking the balance (minimum is Rs.1000)
• To display the Details of particular account
• Display the List of all account details.
• Exit.
5 Declare a class complex to represent complex no. with its real and imaginary
part. Write a menu based program that add, subtract, multiply and divide 2
complex numebrs on the basis of user’s choice. Make functions for all these
operations by passing 2 complex no as object of the class and return object
from the function.
6 Write a program using any one type of inheritance.
7 Write the function WriteStory() that will take a story from keyboard and
write to the file “STORY.TXT”. Wirte another function CopyStory() to copy
only those words that are not starting with uppercase and vowels from
“STORY.TXT” and write to another text file “STORY1.TXT”. Call the
above two function in main() function.
8 Use the class Account as in practical No. 4 and do all the operation of
practical no 4 by creating and using binary file “ACCOUNT.DAT”.
9 Write a menu based program to search a number from the list of N numbers
with the following options
1. Linear Search
2. Binary Search
3. Exit

10 Write a menu based program using array to do the following operations on


the basis of user’s choice.
1. Insert an element in sorted array
2. Delete an element from the array
3. Print all the numbers
4. Exit
11 Write a menu based program using array to arrange the numbers using the
following methods on the basis of user’s choice.
1. Ascending Order Using Selection Sort
2. Descending Order using Bubble Sort
3. Ascending Order Using Insertion sort
4. Exit
12 Write a menu based program using array to merge to array of size M & N
into third array using following methods on the basis of user’s choice.
1. Linear Merge
2. Sorting While Merging
3. Exit

13 WAP that takes N different names from users and arranges them in the
alphabetical order using bubble sort method.
14 Write a menu based program using array to do Stack operations with the
following options on the basis of user’s choice.
1. Push an Element
2. Pop an Element
3. Print Stack
4. Exit
15 Write a menu based program using array to do Queue operations with the
following options on the basis of user’s choice.
1. Insert an Element
2. Delete an Element
3. Print Queue
4. Exit
16 Write a menu based program in C++ to add or subtract 2 matrices od same
size M x N on the basis of user’s choice.
17 Write a menu based program to do the following on double dimensional
array (Square Matrix)on the basis of user’s choice write function for all the
operations.
1. To Sum elements of each diagonal display it on screen
2. To Display only Middle Row and Middle Column
3. To Display only Lower Half part of matrix
4. Exit
18 Write a menu based program to do the following on double dimensional
array (M X N Matrix)on the basis of user’s choice write function for all the
operations.
1. To Sum elements of each Row display it on screen
2. To Sum elements of each Column display it on screen
3. To Sum only those elements which are divisible by either 3 to 5
4. Exit
19 Write a menu based program using Linked Implementation to do Stack
operations with the following options on the basis of user’s choice.
1. Push an Element
2. Pop an Element
3. Print Stack
4. Exit
20 Write a menu based program using array to do Queue operations with the
following options on the basis of user’s choice.
1. Insert an Element
2. Delete an Element
3. Print Queue
4. Exit
21 SQL Table No. 1
22 SQL Table No. 2
23 SQL Table No. 3
24 SQL Table No. 4
25 SQL Table No. 5

Nishant Tiwari, PGT Computer Sc.


JNV, Padmi, Mandla

You might also like