Friday, 27 May 2016

Assignments of IP class XI



Assignment – 1
MySQL
Class – XI
(Chapter 8)
1.       Define the following terms :
a.       Database
b.       Table
c.       Primary key
d.       Candidate key
e.       Alternate key
f.        RDBMS
2.       Write the features of DBMS
3.       Write the characteristics of MySQL
4.       Get familiarize with the following terms  with their alternative names:
a.       Table : Relation, entity
b.       Row :  Tuple, horizontal subset, record
c.       Column : Field, vertical subset, attribute
d.       Cardinality : No. of row  X  No. of col.

(Chapter 9) Assignment-2
1.       Create a database with your name
a.       _______________________________________________________________________
2.       Check if the database is created
a.       _______________________________________________________________________
3.       Open the database
a.       _______________________________________________________________________
4.       Create a table student with the following fields :
a.       Admno             int
b.      Name               varchar(20)
c.       Class               varchar(4)
d.      Section                        char(1)
e.       Fees                 decimal(7,2)
5.       Check if the table student is created
a.       _______________________________________________________________________
6.       Check which database is in use
a.       _______________________________________________________________________
7.       Insert a record into the table student
a.       _______________________________________________________________________
8.       Write the command to display all records
a.       _______________________________________________________________________
9.       Write the command to display the table structure of Student
a.       _______________________________________________________________________
10.   Insert four more records in the student table
11.   Display all records




Assignment-3
(Chapter 9)
1.       Expand DDL and DML statements
2.       What do you mean by syntax?
3.       What are keywords?
4.       Categorize the following statements under DDL and DML
a.                   Create table
b.                   Select
c.                   Drop table
d.                   Delete
e.                   Insert into
f.                    Update
g.                   Alter table
h.                   Create database

5.       What are datatypes?
6.       What is the difference between char and varchar?
7.       What is the difference between int and decimal?
8.       Write the command for the following statements :
a.       Create a table buslist having fields admno, name, class, section, routeno, area, busfee
b.       Insert 5 records into it
c.       Display all records
d.       Using  where clause do the following :
                                                               i.      Display name of all students who avail school bus of routeno 1
                                                             ii.      Display details of all students of class xi
                                                            iii.      Display name, ROUTENO, area of all student whose routeno is 5
                                                           iv.      Display details of all students where busfee is greater than 1000
                                                             v.      Display details of all students of whose name starts ‘A’.
e.       Display all records with proper column headings i.e. routeno as “Route No.”, name as “Name of the Student” and so on… _________________________________________________
__________________________________________________________________________________________________
f.        Insert 5 records in the above table
·         _________________________________________________
·         _________________________________________________
·         _________________________________________________
·         _________________________________________________
·         _________________________________________________
g.       Alter the table by making admno as primary key        _________________________________________________

Friday, 5 February 2016

REFER TO THE NOTES FOR SUMMARY ONLY
DETAILED PREPARATION FROM BOOK

IP notes for SQL and JAVA
















Wednesday, 3 February 2016

some java forms for practice IP Practicle

Dear students

i am posting some forms for practical practice in JAVA to prepare for practical exam.

1.       Design the following GUI Form in Net beans as per the instructions given :


 Write the code for the Clear button and Exit Button.      
2.       It takes input as Emp.No., Name, and Basic Pay.
3.       Write code on the Calculate button to calculate :
For Allowances :
Category                                              Allowances
                                PGT                                                        40% of BP
                                TGT                                                        30% of BP
                                Pry.Tr.                                                   20% of BP
For Deduction :  12% of BP
For Net Pay = Basic Pay + Allowance - Deduction and
4.       If served for more than 10 years Rs.5000 is added to Allowance.
Display Message in a message box “Dear ”+ name+”, Your salary is processed.”


-------------------------form 2------------------------------------


Design the following GUI Form in Netbeans as per the instructions given :



1.       Write the code for the Clear button and Exit Button.              
2.       It takes input as Bill. No., Customer Name and Qty.
3.       Write code on the Calculate button to calculate :
VAT is 14% of Total Amt.
Net Amt. Payable = total Amt  + VAT
on the basis of the following criteria :
Food Item                                           Rate
                                Burger                                                  Rs.90
                                Pizza                                                      Rs. 150
                                Sandwich                                             Rs.75
4.       If ordered during Happy Hours get a discount of 10% on Total Amt.

5.       Display Message in a message box “Thank you.”+customer name



---------------------------form 3---------------------------------
    Design the following GUI Form in Netbeans as per the instructions given :



1.       Write the code for the Clear button and Exit Button.              
2.       It takes input as stuent Name, percentage and stream.
3.       Write code on the Calculate button to calculate
a.       If the student has NCC certificate will get 2% added to his percentage and
b.      if has National Level certificate will get 3% added to his percentage.
4.       As per the given criteria display message in textfield “Eligible for Scholarship” else “Sorry you are not Eligible”
Stream                                 Eligible net percentage
                                Science                                                 90%
                                Commerce                                          80%

                                Humanities                                         70%