Stream | Percentage | Grade |
Medical | > = 80 | A |
60 - 80 | B | |
< 60 | C | |
Non Medical | > = 75 | A |
50 - 75 | B | |
< 50 | C |
Discount Amount |
Net Amount |
Card Type | Discount |
HDFC | 12% |
ICICI | 10% |
Visa | 9.5% |
Axis | 10.5% |
Standard Chartered | 8.5% |
City Bank | 11.5% |
SBI | 8% |
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 |
Mode of payment | Discount |
---|---|
Cash | 8% |
Cheque | 7% |
Credit Card | Nil |
Glamour Garments | |
Name of customer | |
Amount | |
Mode of payment | |
Discout | |
Net amount | |
(1)if the bill amount is more than 15000 then the customer gets an additonal discount of 10% on Bill amount. |
(2)Make discount and Net amount uneditable. |
(3) Write codes for calculate Discount and calculate Net Amount Buttons. |
(4) Write code to exit program when EXIT button is clicked. |
Bill | |
Quantity | |
Unit price | |
Sub total | |
Tax | |
Delivery & Handling charges | |
total | |
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. |
form | |
Enter Number | |
(1)Let say user enter the number 123 in the textfield than its display the result is 6 [ 1 + 2 + 3 = 6 ] |
Palindrome Number | |
Enter Number | |
(1)Let say user enter the number 121 in the textfield than its display the result "Yes it is a Palindrome number" |
(1)Let say user enter the number 522 in the textfield than its display the result "Sorry it is not a Palindrome number" |
Rectangle | Square | Circle |
Length | Side | Radius |
BreadthArea | Area | Area |
(1)On selecting the rectangle radio button then other textfields will be disabled.
similarly for square radio button and circle radio button. |
(1)On button click calculate the Area of selected radio button. |
Q.1 To Print factorial of a given number. |
Q.2 To Print first 15 natural number and their sum. |
Q.3 Loop to print Odd Numbers between 50 to 100. |
Q.4 Loop to print stars in a line. |
Q.5 Using loop count the Number of Vowels and Consonant in the given text. |
Q.6 Write code in java to swap the numbers enter by the user in two textboxes. |
Word Puzzle | |
Enter the string | |
(1)Find lenth of the string |
(2)Find number of words in it. |
(3)Find string is palindrome or not |
(4)Find number of Vowels in it. |
(5)All outputs to be displayed using JOptionpane |
Voting calculations | |
Name of the voter | |
Candidate 1
Candidate 2
Candidate 3
|