0% found this document useful (0 votes)
144 views

Class11 Ip HHW

The document provides details about an assignment for an Informatics Practices class involving developing a billing software using NetBeans. It includes: 1) A case study on developing a billing software for a mall with details on the interface and data entry fields. 2) Questions asking to write code for various buttons and functions of the software like clearing fields, validating input, calculating discounts and final price. 3) Questions about SQL features, commands and queries to be written based on a table of coaching details.

Uploaded by

roopakv1990
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
144 views

Class11 Ip HHW

The document provides details about an assignment for an Informatics Practices class involving developing a billing software using NetBeans. It includes: 1) A case study on developing a billing software for a mall with details on the interface and data entry fields. 2) Questions asking to write code for various buttons and functions of the software like clearing fields, validating input, calculating discounts and final price. 3) Questions about SQL features, commands and queries to be written based on a table of coaching details.

Uploaded by

roopakv1990
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Padma Seshadri Bala Bhavan Sr.Sec.School,K.K.

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:

The list swing controls for the above is as follows:

Object Type Object Name Description


JFrame MEGA MALL The main form
JPanel Category To display different items category
JRadioButtons MenRB To select Men’s Category
WomenRB To select Women’s Category
KidRB To select Kid’s Category
JButtons CalJB To calculate discount and final price
ClearJB To clear all JTextFields
ExitJB To exit from the application
TestJB To test data validity
JTextFields txtItem To enter item name
txtPrice To enter item price
txtDiscount To display discount
txtFP To final price
JCheckBox CHCheck To check card holders
(a) Write the code for the ClearJB Radio button to clear all the JTextFields.

(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.

Category Price Discount


Men’s <10000 30%
>=10000 50%
Women’s <8000 40%
>=8000 50%
Kid’s <5000 20%
>=5000 30%

(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.

5. Give an example to demonstrate the use of ifnull statement.

6,Name the keywords used in a query result


i)to retain the duplicate output rows
ii) to eliminate the duplicate output rows

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

i) To show information about swimming coaches


ii) To list the names of female karate teachers
iii) List the sports that are taught by only male coaches
iv) List the details of coaches in the order of their date of appointment.
v) Display the sports and names of coaches who are aged above 35.
vi) List the names and pay of squash coaches
vii) List the names of sprots that start with the letter ‘S’ or ‘K’
viii) List the names of coaches whose name comprises of ‘A’ as second character
and exactly six characters
ix)Display the details of coaches who joined in the Year 1996
x) List the details in alphabetical order of coach names and decreasing order of pay.

You might also like