Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Give me the coding (Eclipse) for the following. Please. 1. Create a JAVA applica

ID: 3557242 • Letter: G

Question

Give me the coding (Eclipse) for the following. Please.

1. Create a JAVA application that prompts the user to enter his/her favorite holiday with an input box. The program then displays the favorite holiday in a label.

2. Create a JAVA application that prompts the user to enter the amount of his/her sales. The program calculates and displays the commission from the sales. Use the following sales rates:

Sales

Commission rate

$20,000 +

5%

$10,000 - $19,999

4%

$9,999 -

3%

3. Create a JAVA application that prompts the user to enter a length and width of a rectangle. The program calculates the area and perimeter of the rectangle and displays the result on a label box.

4. Create a Java program that draw a blue rectangle with length 300 and width 100, and your name in red with font size 24.

Sales

Commission rate

$20,000 +

5%

$10,000 - $19,999

4%

$9,999 -

3%

Explanation / Answer

import javax.swing.JOptionPane;

?

public class Holiday {

public static void main(String[] args) {

String holiday;

holiday=JOptionPane.showInputDialog("Enter Your favourite Holiday");

JOptionPane.showMessageDialog(null, holiday);

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote