CLASS XI/XII IP PRACTICAL QUESTIONS
Assignment can be written By Kulbhushan 7062228940
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.
The following is the data entry screen used to calculate percentage and grade.
Student Record
First Term Marks : | |
Second Term Marks : |
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. |
Stream | Percentage | Grade |
Medical | > = 80 | A |
60 - 80 | B | |
< 60 | C | |
Non Medical | > = 75 | A |
50 - 75 | B | |
< 50 | C |
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 : |
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 Type | Discount |
HDFC | 12% |
ICICI | 10% |
Visa | 9.5% |
Axis | 10.5% |
Standard Chartered | 8.5% |
City Bank | 11.5% |
SBI | 8% |
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 : |
(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 . |
facility | Cost |
Tour Package | 7000 |
GYM | 2000 |
lanudry | 1000 |
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:-
if the bill amount is more than 15000 then the customer gets an additonal discount of 10% on Bill amount.
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 payment | Discount |
---|---|
Cash | 8% |
Cheque | 7% |
Credit Card | Nil |
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:-
Company Employee
Bill | |
Quantity | |
Unit price | |
Sub total | |
Tax | |
Delivery & Handling charges | |
total | |
Company Employee
The criteria for calculation of delivery and handling charges is as given below:-
Category of city | Charges |
---|---|
A class | 3500 |
B class | 4000 |
C class | 4500 |
(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: 6Q.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 5Q.3
int val = 500, n =100, res; res = n + val >1750 ? 400 : 200; System.out.println(res); Ans: 200Q.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 :-
Ecode | Lastname | Firstname | Department | DOB |
E101 | Shukla | Ajay | Sales | 1990/08/13 |
E102 | Sharma | Rajesh | IT | 1992/05/11 |
E103 | Singh | Rajeev | Sales | 1995/02/21 |
E104 | Maheshwari | Shrey | Purchase | 1991/07/08 |
E105 | Singh | Ankit | Packaging | 1992/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