xii computer sc practical list

Upload: mayank-bhoria

Post on 04-Jun-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/13/2019 XII Computer Sc Practical List

    1/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! + X

    3 /6! - X

    4 /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

    No.

    Name Eng Phy Chem Math Comp Total Per Grade

    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 programusing 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 2complex 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 Search2.  Binary Search3.  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 array2.  Delete an element from the array3.  Print all the numbers4.  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 Sort2.  Descending Order using Bubble Sort3.

     Ascending Order Using Insertion sort4.  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.

  • 8/13/2019 XII Computer Sc Practical List

    2/2

    1.  Linear Merge2.  Sorting While Merging3.  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 Element2.  Pop an Element3.  Print Stack4.  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 Element2.  Delete an Element3.  Print Queue4.  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 screen2.  To Display only Middle Row and Middle Column3.  To Display only Lower Half part of matrix4.  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 screen2.  To Sum elements of each Column display it on screen3.  To Sum only those elements which are divisible by either 3 to 54.  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 Element2.  Pop an Element3.  Print Stack4.  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 Element2.  Delete an Element3.

     Print Queue4.  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