GROUP-1. List of Practical for Class XII, Subject: - Informatics Practices ... method
of teacher class, Show the details in a jtext area control. 11. Write a java ...
GROUP-1 List of Practical for Class XII, Subject: - Informatics Practices (The environment to be used is Java Netbeans and MySQL) 1. Create a Java Desktop Application to display “Welcome to Hello World” application in messagebox. (Note that the message window will show when you click Jbutton control) 2. Create a Java Desktop Application to display your name and address in a message box. Using two Inputboxes, enter both name and address and also show the in another message window. 3. Create a GUI application to perform Arithmetic operations on two operands. 4. Create a GUI Application to find the greater between two numbers using conditional operator. 5. Develop a GUI application to find the maximum between three numbers using conditional operator. The conditional operator will be used as nested manner. 6. Develop a GUI application to enter the month number and display respective month name and days in that month. 7. Develop a GUI application to demonstrate the JCheckbox by inputting your name in a JTextField control and set different font, style, size and color into names using JCheckbox control. 8. Design an application to demonstrate text box. User will enter percentage marks and upon clicking the button corresponding grade should be displayed in the picturebox using following criteria. Marks % Grade >=90 A++ 80-90 A+ 75-80 A 60-75 B 50-60 C 40-50 D < 40 E
9. Create a java desktop application to demonstrate a class concept using class cube, Develop the application to find the volume of a cube. 10. Create a java desktop application to demonstrate constructer object for following data members of teacher class. Private string name, Private string address, Private string design, Private double salary, Private double DA, Private double Gross, The program should initialize a data members through a constructer and using a display method of teacher class, Show the details in a jtext area control. 11. Write a java program to read and display information about employees and managers. Employees are a class that contains Empno, name, address and department. A manager class contains all information of the employee class and the list of employee working under a manager. 12. Develop a Java desk top application to find area of a circle and cylinder using java override method. 13. Create an application to view the teacher (tno, tname, taddress, salary, departmentno, doj) table data using jtable control. Using JDBC connection steps, View the data in tabular form. 14. Create an application to insert, modify, delete, records into My SQL TEACHER TABLE. Teacher table contains following structure. Field Name Data Type Length Tno. CHAR 4 Tname VARCHAR2 25 Taddress VARCHAR2 30 Salary FLOAT Deptno CHAR 4 DOJ DATE 15. Consider the hospital table and write a SQL for the following. No. 1 2 3 4
Name Arpit Zarina Karim Arun
Age 62 22 22 12
Department Surgery ENT Ortho Surgery
DateofADM 2008/01/21 2007/12/12 2008/01/09 2008/01/11
Charges 1300 1500 1200 1300
Sex M F M M
5 6 7 8 9 10
A) B) C) D) E)
Zubin Ketaki Ankita Zarin Khush Shilpa
30 16 39 45 19 23
ENT ENT Cardio Gynae Cardio Nuclear Medicin
2008/01/12 2008/01/04 2008/01/14 2008/01/21 2008/01/10 2008/01/12
1250 1250 1800 1300 1800 1400
SELECT ALL information of patients of cardio department. To List the names of Female patients who are in ENT department To list names of all patients with their DateofADM in ascending order. To Display the patients name, charges, age, for only female patients. To count the no. of patients with age less than 30.
M F F F M F
List of Programs for Practical : 2010-11
Subject: Computer Science (083) Class: XI S.No.
Program
1.
Write a program to print the largest of three numbers.
2.
Write a program to print the mathematical table of number 1 to 10.
3.
Write a program to find the factorial value of a number entered by the user.
4.
Write a program to check whether the number is prime or not.
5.
Write a program to find the sum of first “n “natural numbers.
6.
Write a program to find the minimum and maximum value from an array of size 10.
7.
Write a program to print the given figure: * ** *** **** *****
8.
Write a program to find the value of “m” to the power “n”.
9.
Write a program to check whether a number is palindrome or not.
10.
Write a program to print the reverse of a string.
11.
Write a program to display the name of the month depends upon the number (between 1-12) be enter by the user.
12.
Write a program to print the Fibonacci series of specified terms (0 1 1 2 3 5 ………)
13.
Write a program to check whether a entered year is leap year or not.
14.
Write a program to check whether a character is alphabet.
15.
Write a program that reads a string and converts it to uppercase.
16.
Write a program to find the sum of left diagonal of a 3x3 matrix.
17.
Write a program to arrange the array elements in ascending order.
18.
Write a program to convert a decimal number into binary number.
19.
Write a program to find the product of two matrices.
20.
Write a program to search a specified element from an array.
GROUP-2 List of Practical and Projects for Computer Science Class – XII 1. 2. 3. 4. 5. 6. 7. 8.
Write the code to print the factorial of a given number. Write a program to print the Fibonacci series. Write a program to check the given number is palindrome or not. Write a program to check the given number is prime or not. Write a program to multiply of two matrixes. Write a program to print the transpose of the given matrix. Write a program to swap the value of two variables without using third variable. Write a program a program to find the number of words in an existing file using file handling. 9. Write a program to print following pattern. * * * *
* *
*
* *
*
10. Write a program for call by value and call by reference. 11. Write a program in C++ to perform the basic operation on linked stack. The stack contains data of type integer. 12. Write a program to create a queue using linked list to perform addition, deletion and display operations. 13. Write a program to create a Linked List. The Linked List contains data of type integer. 14. Write a C++ program to sort an array using Selection Sort. 15. Write a C++ program to sort an array using Quick Sort. 16. Write a C++ program to sort an array using Bubble Sort. 17. Write a C++ program to find the sum of the diagonal elements of matrix. 18. Write a C++ program to interchange the values of row and column. 19. Write a C++ program to find sum of rows and sum of column from a two dimensional array. 20. Write a program to reverse a string using pointer. 21. Write a program to calculate the length of the string using pointer. 22. Write a program in C++ to count the number of words ending with ‘s’ from the text file india.txt. 23. Write a C++ program to counts the number of words in a given a given file. 24. Write a C++ program that implements concept of Multilevel Inheritance. 25. Write a C++ program that implements concept of Polymorphism.
Projects 1. Quiz. 2. Students Information System. 3. Bank Management System. 4. Time table management System. 5. Video Library Management System. 6. Payroll management System. 7. Hospital management System. 8. Restaurant Management System. 9. Blood Bank Management System. 10. Automatic Ticket Management System for theater 11. General Store Management System.
GROUP-3 Class XI Subject: I.P. List of Practical Note: Using JAVA as a programming language. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.
Write a program in JAVA to display “I am the student of Class XI”. Create a GUI application to assign two numbers and find their sum and difference using switch statement. Write a program for find the number even or odd. Write a program in JAVA to find the maximum of three numbers. Write a program to print a table of entered number by the user. Write a program to print a factorial of entered number by the user. Write a program to check whether the number is prime or not. Develop a GUI application to assign the marks in five subjects and calculate the total and assign grade. If total >=400 grade is “A” otherwise grade is “B”. Develop a GUI application to calculate the square and cube of a number. Write a for loop that will print the squares from 1 to 10.
11.Write a program to print the following pattern: * ** *** **** ***** 12.Write a program to print the following pattern: 1 22 333 4444 13. Write a program to find sum and average of n natural numbers, odd numbers and even numbers. 14. Write a program to print sum of digits of entered number.(for example 125=1+2+5=8). 15. Write a program to convert a decimal number into binary number. 16. Write a method that accepts two parameters a and b and interchange their values.. 17. Write a method pow(a, b) to calculate the value of a raised to the power b.
Using MySQL 18. Write SQL commands for the queries given from a to f and write the output of the SQL commands given in part g based on a table LIBRARY shown below:
No. 1 2 3 4 5 6 7 8 9 10
Title Data Structure DOS Guide Turbo C++ Dbase Dummies Mastering Windows Computer Studies COBOL Guide Network Basic for Beginners Advanced Pascal
Table: LIBRARY Author Subject Lipschute DS NORTRON OS Robort Lafore Prog Palmer DBMS Cowart OS French FND Stern Prog Freed NET Norton Prog Schildt Prog
Publisher McGraw PHI Galgotia PustakM BPB Galgotia John W Zpress BPB McGraw
Quantity 4 3 5 7 1 2 4 3 3 4
Price 217.00 175.00 270.00 130.00 225.00 75.00 1000.00 200.00 40.00 350.00
a) b) c) d) e) f) g) h)
To display the title of all books with Price between 100 and 300. To display Title and Author of all the books having type Prog and published by BPB. To display the list of all the books with price more than 130 in ascending order of Qty. To display the list of all books whose quantity is less than 4. To display the publishers and the number of books of each book in the table. To insert a new book in the table LIBRARY. To increase the price of the book title ‘TURBO C++’ by Rs.30. To display the Title and Total Price of all Computer books. The Total Price is calculated as Price * Qty. i) Write the output of the following: i. Select MIN(Price) from Library; ii. Select Sum(Price * Qty) from Library where Qty > 3; iii. Select Avg(Price) from Library where Qty < 4; iv. Select Count(Distinct Publisher) from Library; 19. Consider the following tables EMPLOYEE and write the SQL query for the following requirements. Eid Name Deptid Qualification Sex Points Basic DA HRA Bonus 1 Sunil 101 MCA F 20 6000 2000 2300 200 2 Virender 101 BCA M 15 2000 300 300 30 3 Mukesh 102 B.A M 15 1000 300 300 40 4 Rakesh 102 M.A M 40 1500 390 490 30 5 Sumit 103 B.Tech M 32 8000 900 900 80 6 Jyoti 101 M.Tech F 12 10000 300 490 89 a) Create the structure of the above table b) Insert any dummy record
c) d) e) f) g) h)
Display the Names begin with alphabet “V” Display the records who are females. Display the name and qualification who are “B. Tech.” Add one more field for the employee table -DOJ (date of joining) Do not display the records of “Jyoti”, “Mukesh”. To insert a new record in the EMPLOYEE table with following data: 7, ’Vikas’, 103, ’MCA’,’M’, 36, 12000, 1000, 500, 90. i) Display the Name, deptid, Basic whose date of joining is after 23/09/2000. j) Display the records according to their Names. 20. Write down the output produced by following queries after execution. a) SELECT CONCAT (‘VISHAL’,’KUMAR’) FROM DUAL; b) SELECT SUBSTR (‘INFORMATICS PRACTICES’,3,4) FROM DUAL; c) SELECT INSTR (‘INDOOR OUTDOOR’,’OR’) FROM DUAL; d) SELECT LENGTH (‘INFORMATICS PRACTICES’) FROM DUAL; e) SELECT LOWER (RIGHT (‘JAVA’, 2)) FROM DUAL; f) SELECT MOD (11,3) FROM DUAL; g) SELECT SIGN (-67) FROM DUAL; h) SELECT SQRT (49) FROM DUAL; i) SELECT DATEOFMONTH (‘2010-02-16’) FROM DUAL; j) SELECT ROUND (15.193,1) FROM DUAL; 21. Consider the following tables EMPLOYEE and write the SQL query for the following requirements. Eid 1 2 3 4 5 6
a) b) c) d) e) f) g) h)
Name Deepali Rajat Hari Harry Sumit Jyoti
Deptid 101 101 102 102 103 101
Qualification MCA BCA B.A M.A B.Tech M.Tech
Sex F M M M M F
Points 20 15 15 40 32 12
Basic 6000 2000 1000 1500 8000 10000
DA 2000 300 300 390 900 300
HRA 2300 300 300 490 900 490
Bonus 200 30 40 30 80 89
Create the structure of the above table Insert any dummy record Display the Names begin with alphabet “H” Display the records who are females. Display the name and qualification who are “B. Tech.” Add one more field for the employee table -DOJ (date of joining) Do not display the records of “Jyoti”, “Harry”. Display Name, Deptid and Point, NewScore. The NewScore is a product of Point and 12
i) Display the Name, deptid, Basic whose date of joining is after 23/09/2000. j) Display the records according to their Names. k) Modify all the records in salary table by giving increment of 10% on Basic to all the Employees l) Display the gross amount for all records with their name and date of joining. The gross amount is Basic+Da+Hra+Bonus. m) Delete the records that have joined before 01/01/1980. n) Display the sum of salary according to their deptid o) Display the deptid in which only single person is working. 22. Write down the output produced by following queries after execution. a) SELECT CONCAT(‘PRIYA’,’JAIN’) FROM DUAL; b) SELECT SUBSTR(‘INFORMATICS PRACTICES’,3,4) FROM DUAL; c) SELECT INSTR(‘INDOOR OUTDOOR’,’OR’) FROM DUAL; d) SELECT LENGTH(‘INFORMATICS PRACTICES’) FROM DUAL; e) SELECT LOWER(RIGHT(‘JAVA’,2))FROM DUAL; f) SELECT MOD(11,3) FROM DUAL; g) SELECT SIGN(-67) FROM DUAL; h) SELECT SQRT(81) FROM DUAL; i) SELECT DATEOFMONTH(‘2009-02-03’)FROM DUAL; j) SELECT ROUND(15.193,1) FROM DUAL;
PROJECTS CLASS: XI(IP) 1)
2)
3)
4)
Write a program to make a Calculator using Java Swing Controls to perform basic arithmetical operations like addition, subtraction, multiplication, division, modulus. Write a program to make a tax Calculator using Java Swing Controls which accepts rate, Principal, time from user and calculates compound Interest. Choose the controls as per your requirement. Write a program in JAVA that will have a Jlist control. The Jlist control will have all the emp name in it. After selection of the name from the list the details will be shown in the Jtextboxs. The details will be given using switch case. Create a JAVA desktop application to find the discount of an item on the basis of category of items. The categories will be implemented in JRadiobutton controls. The Discount will be calculated as follows. Cost Discount (%)