List of Practical for Class XII Computer Science

Similar documents
Subject: Computer Science

TIME: 3 HOURS MARKS: a. Develop a java program to sort an array of N numbers in ascending order. (40)

Time: 3 HOURS Maximum Marks: 100

PROGRAMMING IN C AND C++:

Advanced C Programming and Introduction to Data Structures

Revised time table of BCA (2011 admission) record submission

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI

Suggestive List of C++ Programs

4.merge3(), it merges array a and b to form c(in descending), if a and b are sorted in ascending o rder. 5 sortasc() - t o s ort array in ascending or

Object Oriented Programming Using C ++ Page No. : 1. ASSIGNMENT SHEET WITHOUT USING OBJECT AND CLASSES

3.Constructors and Destructors. Develop cpp program to implement constructor and destructor.

[6] [6] [6] [5] [5] [6] [5] [5]

PROGRAMMING IN C++ (Regulation 2008) Answer ALL questions PART A (10 2 = 20 Marks) PART B (5 16 = 80 Marks) function? (8)

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

AUTUMN BREAK HOLIDAYS HOME WORK ( ) CLASS XII

Assignment 3 Class XII (Computer Science 083) Topic Array

VARIABLE, OPERATOR AND EXPRESSION [SET 1]

Table of Contents. Chapter 1: Introduction to Data Structures... 1

Types of Data Structures

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++

General Instructions. You can use QtSpim simulator to work on these assignments.

Constructor & Classes Questions

CP I LAB MANUAL. Expt No 2 To Check Whether A Year Is A Leap Year Using if-else-if.

An array is a collection of data that holds fixed number of values of same type. It is also known as a set. An array is a data type.

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK

INTERNATIONAL INDIAN SCHOOL, RIYADH. Ch 1 C++ Revision tour

Practical List of. MCA IV SEM Session -2010

Do not turn over until you are told to do so by the Invigilator.

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

2016 COMPUTER SCIENCE

(a) Differentiate between a call by value and call by reference method.

Babaria Institute of Technology Computer Science and Engineering Department Practical List of Object Oriented Programming with C

Problem One: Loops and ASCII Graphics

An Activation Record for Simple Subprograms. Activation Record for a Language with Stack-Dynamic Local Variables

Bharati Vidyapeeth s College Of Engineering for Women Pune-43 Department E & TC. SE- Unit Test I Subject-DS

Sample Question Paper

Class and object Holiday Homework

Chapter4: Data Structures. Data: It is a collection of raw facts that has implicit meaning.

CORE JAVA TRAINING COURSE CONTENT

Kapil Sehgal PGT Computer. Science Ankleshwar Gujarat

FUNDAMENTALS OF MICROPROCESSOR AND MICROCONTROLLER (FMM) SHREE RAMCHANDRA EDUCATION SOCIETY S DEPARTMENY OF ELECTRICAL ENGINEERING LAB MANUAL

Tribhuvan University Institute of Science and Technology 2065

VALLIAMMAI ENGINEERING COLLEGE

Reg. No. : Question Paper Code : 27157

Programming and Data Structures in C Instruction for students

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

END TERM EXAMINATION

Dynamic Data Structures

EEL 3801 Introduction to Computer Engineering Summer Home Work Schedule

Where does the insert method place the new entry in the array? Assume array indexing starts from 0(zero).

Lecture 2 Arrays, Searching and Sorting (Arrays, multi-dimensional Arrays)

Object Oriented Programming 2012

Questions Bank. 14) State any four advantages of using flow-chart

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

BSc (Hons) Computer Science. with Network Security. Examinations for / Semester1

LIST OF EXPERIMENTS. (1) (Office Automation)

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

(Following Paper ID and Roll No. to be filled by the student in the Answer Book)

Computer Science & Engineering. Second Year

Computer Science 330 Assignment

Columns A[0] A[0][0] = 20 A[0][1] = 30

Index for C++ Programming

PRACTICAL LIST FOR EVEN SEMESTERS (PGDCA/MCA/MSC (CS))

DATA STRUCTURE : A MCQ QUESTION SET Code : RBMCQ0305

NATIONAL UNIVERSITY OF SINGAPORE

R10 SET - 1. Code No: R II B. Tech I Semester, Supplementary Examinations, May

Introduction to Computer Science Midterm 3 Fall, Points

Data Structures Through C. Student Workbook

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013

void main() { int global=7 ; func( ::global,global) ; cout<<global<<, <<::global<< \n ; func(global,::global) ; cout<<global<<, <<::global<< \n ; }

Vector: A series of scalars contained in a column or row. Dimensions: How many rows and columns a vector or matrix has.

Maths for Signals and Systems Linear Algebra in Engineering. Some problems by Gilbert Strang

Computer Science. Practical File

ASSIGNMENT CLASS : XII ( ) COMPUTER SCIENCE

CSCE 2014 Final Exam Spring Version A

SPLIT-UP SYLLABUS ----CHENNAI REGION COMPUTER SCIENCE (Code: 083) Class-XII Academic Session

Sample Paper of Computer for Class 10

COMPUTER SCIENCE Paper 1

KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SPLITUP SYLLABUS FOR COMPUTER SCIENCE CLASS XII

KRISHNA KANTA HANDIQUI STATE OPEN UNIVERSITY Hiranya Kumar Bhuyan School of Science and Technology

How to declare an array in C?


Principles of Programming. Chapter 6: Arrays

High Institute of Computer Science & Information Technology Term : 1 st. El-Shorouk Academy Acad. Year : 2013 / Year : 2 nd

CS-301 Data Structure. Tariq Hanif

TOPICS TO COVER:-- Array declaration and use.

! Determine if a number is odd or even. ! Determine if a number/character is in a range. - 1 to 10 (inclusive) - between a and z (inclusive)

Data Abstractions. National Chiao Tung University Chun-Jen Tsai 05/23/2012

Object Oriented Programming Using C++ Mathematics & Computing IET, Katunayake

Recursion. Chapter 7. Copyright 2012 by Pearson Education, Inc. All rights reserved

Computer Science Foundation Exam. Dec. 19, 2003 COMPUTER SCIENCE I. Section I A. No Calculators! KEY

1 P a g e A r y a n C o l l e g e \ B S c _ I T \ C \

Chapter 6: Using Arrays

! Determine if a number is odd or even. ! Determine if a number/character is in a range. - 1 to 10 (inclusive) - between a and z (inclusive)

Department of Computer Science & Engineering Indian Institute of Technology Kharagpur. Practice Sheet #04

EXAM Microsoft MTA Software Development Fundamentals. Buy Full Product.

CSE 212 : JAVA PROGRAMMING LAB. IV Sem BE (CS&E) (2013) DEPT OF COMPUTER SCIENCE & ENGG. M. I. T., MANIPAL. Prepared By : Approved by :

Chapter-6 Classes and Objects. stud.execute(); getch();} Output:

KUWAIT SAHODAYA EXAMINATION FIRST TERM SUBJECT : COMPUTER SCIENCE (083) : CLASS - XII SET - 3 Time : 3 Hours

Transcription:

List of Practical for Class XII Computer Science P.01. Write a complete C++ program to define class Garment with following description: Private members: Code - type string Type - type string Size - type int Material- type string Price - type float Nos - type int Function Calc_Price( ) which calculate and assign the value Price as follows: If material is COTTON Type Price TROUSER 1500 SHIRT 1200 For material other than COTTON reduce price by 25% Public members: Constructor to assign initial values of Code, Type and Material with Not Assigned and size and Price with 0. Function Enter( ) to read data values and call Calc_Price( ). Function Show( ) to display contents of all data members. Create the objects of class in main ( ) as per user choice and display the same. P.02. 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. P.03. Define a class Teacher with the following specification: Private members: Name 20 Characters Subject 10 Characters Basic, DA, HRA float Salary float Calculate() function which computes the salary and returns it. Salary is sum of Basic, DA, and HRA. And also calculate DA as 57% of Basic and HRA as 30% of Basic. Page 1 of 5

Public members: Constructor to assign Name as Null, Subject as English and Basic, DA, HRA, Salary as 0.0. Parameterized Constructor Copy Constructor Destructor ReadData() function which accepts the data values and invoke the function Calculate(). DisplayData() function which prints the data on the screen. Write a program to create object of class as per user choice and display the same. P.04. Write a menu driven C++ program to read & write records from a class Stud having Rollno, Sname, Age, class, Marks as private data member and Input( ), Display( ), Retrollno( ) as public function members. Perform following actions. 1. Create objects and write the records to the file STUDENT.DAT as per user choice. 2. Read all records from the files and 3. Search and display a records of the given rollno. P.05. Write a menu driven C++ program to read & write records from a class Stud having Rollno, Sname, Age, class, Marks as private data member and Input( ), Display( ), Retrollno( ) as public function members. Perform following actions. 1. Create objects and write the records to the file STUDENT.DAT as per user choice. 2. Read all records from the files and 3. Delete a record with warning of the given rollno. P.06. Write a menu driven C++ program which contains 1-D Array of 10 1. Read the data values from user for array 2. Invoke a function LSearch( ) for linear search of given element and display it s position in array. 3. Invoke a function BSearch( ) for binary search of given element and display it s position in array. Page 2 of 5

P.07. 2. Invoke a function SelSort( ) to sort the elements using selection sort and 3. Invoke a function BSort( ) to sort the elements using bubble sort and P.08. 2. Invoke a function SelSort( ) to sort the elements using selection sort and 3. Invoke a function InsSort( ) to sort the elements using insertion sort. P.09. 2. Invoke a function BSort( ) to sort the elements using bubble sort and 3. Invoke a function InsSort( ) to sort the elements using insertion sort. P.10. Write a menu driven C++ program to merge two given arrays A in ascending order. Perform the following: 1. Read ascending array A of 10 element from user and 2. Read ascending array B of 10 element from user and 3. Create ascending third array C, which contains merged elements of A and B in ascending order. P.11. Write a menu driven complete C++ program to: 1. Read two matrices A[10][10], B[10][10] from user. 2. Add the matrices A and B into matrix C[10][10] and 3. Subtract the matrices and put in matrix C[10][10] and 4. Multiply the matrices and put in matrix C[10][10] and display Page 3 of 5

P.12 Write a menu driven C++ program to create a link list to read information from user. 1. Using insertion in the beginning of the list. 2. Using insertion in the end of the list. 3. Display the content of the list. P.13 Write a menu driven C++ program to create a link list and perform the following: 1. Read information from user using insertion in the end of the list. 2. Delete nodes from the beginning of the list. 3. Display the contents of the list. P.14 Write a menu driven C++ program to implement dynamic stack and do the following: 1. Push the elements on the stack. 2. Pop the elements on the stack. 3. Display the elements on the stack. P.15 Write a menu driven C++ program to implement the dynamic queue and do the following: 1. Insert the elements in the queue. 2. Delete the elements from the queue. 3. Display the elements of the queue. P.16 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 P.17 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 Page 4 of 5

P.18 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 P.19 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 P.20 Write a menu based program to do the following on circular queue of 10 integer elements using functions. 1. Insert element in Circular Queue 2. Delete element from Circular Queue 3. Display contents of Circular Queue Page 5 of 5