CLASS XI/XII IP PRACTICAL QUESTIONS
Assignment can be written By Kulbhushan 7062228940
   Q.1 A programmer is required to develop a student record. The school offers two different streams, medical and non-medical with different grading criteria.

The following is the data entry screen used to calculate percentage and grade.
Student Record
First Term Marks :
Second Term Marks :
StreamMedical
Non-Medical
Percentage :
Grade :
(1) Write the code to disable the txtPercentage and the txtGrade text fields.
(2) Write the code for the cmdClear button to clear all the tex fields.
(3) Write the code for the cmdCalcPerc button to calculate the percentage to display in text filed txtPercentage,after finding the total marks of first term and second term(assuming that both marks are out of 100)
(4) Write the code for the cmdCalcGrade button to calculate the grade to display in text fled txtGrade, depending on the stream selected according to the criteria in the following table.
StreamPercentageGrade
Medical> = 80A
60 - 80B
< 60C
Non Medical> = 75A
50 - 75B
< 50C
   Q.2 Mr.Mittal is working in a multi national company. His family members visit a shopping mall and purchased variety of products including garments. The total amount goes into some thousands. The owner of the shopping mall provides handsome discounts of credit cards as:-
SHOPPING MALL DISCOUNT
Shopping Account :
Cart Type HDFC ICICI Visa Axis
Standard Charted City Bank SBI
Discount Amount
Net Amount
(1) Write the command for Discount button to compute discount amount and net amount.
(2) Write the code for cmdClear command button to clear all the text boxes and set the default choice in the radio button as SBI.
(3) Write the code for Exit button to close the application.
Card TypeDiscount
HDFC12%
ICICI10%
Visa9.5%
Axis10.5%
Standard Chartered8.5%
City Bank11.5%
SBI8%
   Q.3 Hotel Hill Top in Ooty plan to go for computerization in order to meet the workload during tourist session. There are three types of rooms in Hill Top:-
HOTEL HILL TOP
Customer name :
No of days :
Rate :
Cost of Facilities :
Amount :
Cart Type Single Double Delux
Facilities Tour Package GYM Laundry
(1)Write the code to disable the text boxes txtRate,txtAmount, txtFacility when the form activated.
(2) Write the code for cmdClear command button to clear all the text boxes.
(3) Write the code for cmdRate to calculate rate of the room per day and display it in txtRate depending on the type of room selected by the customer.rate is calculated according to the following table.
(4)Write the code from cmdAmount to calculate the total amount and display it in txtAmount. The total amont is calcuated by first finding the cost of facilities selectd by the customer.Cost of facilites is calcuated according to the following table .
facilityCost
Tour Package7000
GYM2000
lanudry1000
Coding for project is not available at this moment	
	
   Q.4 Glamour garments has developed a GUI application for their company as shown below
The company accepts payments in 3 modes - cheque, cash and credit cards. The discount given as per mode of payment is as follows:-
GLAMOUR COMPANY
Mode of paymentDiscount
Cash8%
Cheque7%
Credit CardNil
Glamour Garments
Name of customer
Amount
Mode of payment
Discout
Net amount

if the bill amount is more than 15000 then the customer gets an additonal discount of 10% on Bill amount.
(1)Make discount and Net amount uneditable.
(2) Write codes for calculate Discount and calculate Net Amount Buttons.
(3) Write code to exit program when EXIT button is clicked.
Coding for project is not available at this moment	
	
   Q.5 Shallotte enterprise has computerize billing. The following data screen is used to generate bill:-
Bill
Quantity
Unit price
Sub total
Tax
Delivery & Handling charges
total
Category of City A class
B class
C class

Company Employee

The criteria for calculation of delivery and handling charges is as given below:-
Category of cityCharges
A class3500
B class4000
C class4500
(1)Write the code to make the textfields txtSubTotal, txtTax, txt DelHanch and txtTotal non-editable and set the Category of city as follows
(2) Write codes for Following
1. Write the code for Calculate button to calculate and display Sub Total, Tax, Delivery and Handiling charges and Total depending on the category of the city.
   (a) Sub Total is calculated as Unit Price * Quantity.
   (b) Tax is calculated as 7.85% of Sub Total.
   (c) Total is calculated as the sum of Sub Total, Tax and Delivery and Handling Charges. If Company Employee check box is checked then tax should be 2.5%. .
(3) When clear button is clicked all the text boxes should be clear and close the application when Exit button is presed.
Coding for project is not available at this moment	
	
   Q.6 Find the output of the following-
Q.1
int t , s;
s = 6;
t = ( 8 * s++ )%7;
System.out.println(t);

Ans: 6
Q.2
int a=6, b =5;
a++;
--b;
b++;
a--;
System.out.println(a);
System.out.println(b);

Ans: value of a is 6
Ans: value of b is 5
Q.3
int  val = 500, n =100, res;
res = n + val >1750 ? 400 : 200;
System.out.println(res);

Ans: 200
Q.4
int  a = 10, b =4, c,d;
c = ++a - (b--)*2;
d = a/2 *5 - (--b);
System.out.println(c);
System.out.println(d);

Ans: value of c is 3
Ans: value of d is 23



   Q.7 Consider the following Table Employee :-
EcodeLastnameFirstnameDepartmentDOB
E101ShuklaAjaySales1990/08/13
E102SharmaRajeshIT1992/05/11
E103SinghRajeevSales1995/02/21
E104MaheshwariShreyPurchase1991/07/08
E105SinghAnkitPackaging1992/01/15
(1)Display the department names of all Employee, without Duplication.
(2) Display the detail of all Employee with firstname contain exactly 5 character.
(3) Display the detail of all Employee whose firstname is Rajeev and Lastname is Singh.
(4) Display the detail of Ajay, Rajesh and Ankit.
(5) Count Total No of rows.
(6) Display those Employee name who born after 1992.
(7) Add a new column city char(10).
Coding for project is not available at this moment	
	
Free Web Hosting