• 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

    Ist Term Marks: IIst Term Marks:

    Stream
    Medical 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

  • 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

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

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

  • Q.6 Enter the number by user and then sum of its Number

    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 ]

  • Q.7 To check a number is a Palindrome or not

    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"

  • Q.8 To find the Area of the selected Radio Buttons

    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.9 write down the code of the given Questions

    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.

  • Q.10 Develop an application to accept a String and perform following functions :-

    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

  • Q.11 An Election is conducted between 3 candidates. There are N number of voters. By clicking Next Voter Button textboxes and RadioButtons need to be cleared. By Clicking Result, the votes obtained by each candidate and the winnner candidate to be displayed in text area.

    Voting calculations
    Name of the voter
    Candidate 1 Candidate 2 Candidate 3

Free Web Hosting