JAVA NETBEANS IDE 6.5.1

Q1. Design a Java Netbeans 6.5.1 GUI application to find out addition of two numbers?

Q2. Design a Java Netbeans 6.5.1 GUI application to find out subtraction of two numbers?

Q3. Design a Java Netbeans 6.5.1 GUI application to find out average of three numbers?

Q4. Design a Java Netbeans 6.5.1 GUI application that asks for some information about a student and display it in I-card format.

Q5. Design a Java Netbeans 6.5.1 GUI application to find out Total, Percentage of any three subjects (Subject marks not more than 100).

Q6. Design a Java NetBeans 6.5.1 GUI application to calculate salary of employee.

Q7. Design a Java Netbeans GUI application that gives demonstration of all arithmetic operators.

Q8. Design Java Netbeans 6.5.1 GUI application to find out that entered number is EVEN or ODD.

Q9. Design a Java Netbeans 6.5.1 GUI application to find the maximum number between the two numbers.

Q10. Design a Java Netbeans 6.5.1 GUI application to find out the division of student.

Q11. Design a Java Netbeans GUI applications to calculate bonus and netsalary with if condition.

Q12. Design a Java Netbeans 6.5.1 GUI application to calculate mobile bill amount?

Q13. Design a Java Netbeans 6.5.1 program that accept three integer and print the largest of the three. Make  the use of only if statement.

Q14. Program to obtain boiling point of water from user and report whether the user has entered the correct answer or not. Make use of if…else statement.

Q15. Design an application in JAVA NETBEANS IDE 6.5.1 to prepare students result on the basis of marks entered.

Q16. Design Java Netbeans 6.5.1 an application that accepts principal amount, rate of interest and time from the user. Then it computes the simple interest and displays it.

Q17. Design a Java Netbeans 6.5.1 GUI application to find out Day of Week.

Q18. Design a Java Netbeans 6.5.1 GUI application having interface as shown below :

 The loop for the frame should print numbers from lowest to highest on the basis of given two numbers, upon clicking at “Count” button.

Q19. Design a Java NetBeans GUI application for checking Username and  Password.

Q20. Design a Java NetBeans GUI application to display a photo while program is running.

Q21. ABN Shipment Corporation imposes charges to customers for different products. The shipment company costs for an order in two forms: Wholesalers and Retailers. The cost is calculated on unit basis as follows:

For Units Price for Wholesaler

(per unit)

Price for Retailers

(per unit)

1-15 Rs 50/- Rs 60/-
16-20 Rs 45/- Rs 55/-
21-30 Rs 40/- Rs 50/-
31-50 Rs 35/- Rs 45/-
>50 Rs 30/- Rs 40/-

 

Special customer (named as chkSpecial JCheckBox Control) are given a discount of 10 %. The Following is the screen used to calculate Net Amount for an order:

A JLabel contains customer type as Wholesalers and Retailers as opteWhole and optRetail jRadioButton. User will enter the Units Order(txtUnit). Discount named as txtDisc JTextField.

  1. Write the code to disable the text boxes txtTotal and txtDisc and Wholesaler as default option when the form is active.
  2. Write the code for Calculate Amount Button to
  3. Display the discounted price in txtDisc if Special customer is selected.
  4. Display Net Amount.(Total cost=order unit * per unit price)
  5. Write the code for clear and Exit Button to
  6. Clear all Text Field and select wholesaler as default and uncheck special customer if is it.   

 

Q22. Mr. Vidyarthi works in Blossoms Public School as a programmer. He is required to develop a student record. The school offers two different streams: medical and non-medical, with different grading criteria. The school also offers incentive to the NCC cadets in the form of a 3% increment in percentage for all the NCC cadets. The grading criterion for the two streams is given below:

Stream Percentage Grade
 

Medical

>=80 A
60-79 B
< 60 C
 

Non-Medical

>=75 A
50-74 B
< 50 C

There is JPanel a container which is used for Medical and Non-Medical:

In the data entry from enter First Term Marks (txtFirst), Second Term Marks (txtSecond), select Stream and/or NCC Cadet and write the code for the following:

  1. Write the code to disable the text boxes for Percentage(txtPercentage) and Grade (txtGrade). Also, set Medical as default stream.
  2. Write the code for Calculate Percentage button to calculate the percentage after finding the total marks of first term and second term (assuming that both marks are out of 100). Also ensure that NCC cadets (chkNCC) get an increment of 3% in their percentages.
  3. Write the code for Calculate Grade button to calculate the grade depending on the stream selected according to the criteria given above.
  4. Write the code for Exit Button and Clear button to Clear all the text boxes and the check box and Medical as default stream.

Q23. Mr. Sharma of ICICI Bank frequently needs to calculate the interest and amount due for his clients. He asks his software programmer to design an interest calculator which will calculate the compound interest and amount due. The bank offer two different accounts fixed deposit and recurring deposit with different rate criteria. The programmer uses Java language with NetBeans IDE to develop this:

 

There is a JPanel containers which is used for Account Type:

and a jCheckBox1 control for Sr.Citizen(chkSR).

In the data entry form enter Principal(txtPrincipal),Time(txtTime),select an account type and/or Sr. Citizen and write the code for the following :

  1. Write the code to disable the text boxes Interest(txtInterest),Amount(txtAmount), Rate(txtRate) in the form when the form activated.
  2. Write the code for Exit and Clear Button to clear all the text boxes and check box. Set the default choice in the option button as Fixed Deposit.
  3. Write the code for Calculate button to calculate compound interest and amount and display the values in text boxes: txtInterest and txtAmount depending on the principal, rate and time.

Note that the compound interest is calculated as principal*(1+rate/100)^Time & amount as Principal + Interest.

Rate is calculated based on the time according to the following table:

 

Account Time(in yrs) Rate
Fixed Deposit <=1 10 %
>1 and <=5 12 %
>5 15 %
Recurring Deposit <=2 10 %
>2 and <=7 12 %
>7 15 %

An additional rate of 2% is given to senior citizens, i.e., if the chkSR CheckBox is checked.

 

 

%d bloggers like this: