Class11 Ip HHW
Class11 Ip HHW
Nagar
Class – XI
Sub : Informatics Practices
II Term - Holiday Homework (2010-11)
I NetBeans Assignment
1.Read the following case study and answer the questions that follow:
Mr.Basu of MEGA MALL decided to computerize the billing department. The
accounts manager at MEGA MALL is creating the billing software to generate the
bill during the sale period. A new bill is generated for each item sold. The discount is
given based on the item category. An additional discount of 5% is given to the
MEGA MALL card holders. The following is data entry screen used at the MEGA
MALL:
(b) Write the code for the TestJB button to ensure that the user does not enter a
negative or a zero value in txtItem JTextField.If a negative or a zero value is entered
that txtItem should be made blank and a warning message should be displayed
through a JOptionPalne.
(c) Write the code for the CalJB button to display the discount and final price in the
txtDiscount and txtFP JTextFields respectively. Note that final price is calculated as
(price – discount) and the discount is calculated based on the category and price
according to the following table. Also remember to given an additional 5% discount
for membership card holders i.e. if the CHCheck JCheckBox is checked.
(d)Write the code for ExitJB button to exit from the application.
II MYSQL
2. What are the key features of MySql ?
3. Explain briefly about DDL,DML and TCL commands and also give two examples
for each of those commands.
4. List the data types that are available in MYSQL that store the following
i) Numeric data ii)String data iii)Date type data
Also mention the significance of each data type.
7Write SQL commands for the following queries based on the table CLUB.
ID COACHNAME AGE SPORTS DATOFAPP PAY GENDER
1 KUKREJA 35 KARATE 1996-03-21 1200 M
2 RAVINA 34 KARATE 1998-01-20 1000 F
3 KARAN 34 SQUASH 1996-02-19 2000 M
4 TARUN 33 BASKETBALL 1998-01-01 1500 M
5 ZUBIN 36 SWIMMING 1998-01-12 750 M
6 KETAKI 36 SWIMMING 1998-02-24 800 F
7 ANKITA 39 SQUASH 1998-02-20 2200 F
8 ZAREEN 37 KARATE 1998-02-22 1100 F
9 KUSH 41 SWIMMING 1998-01-13 900 M
10 SHAILYA 37 BASKETBALL 1998-02-19 1700 M