Java application class | Computer Science homework help

1) Write an application class that contains several methods. The first method should be named greeting () and should display a JOptionPane that is customized in the following ways (Figure 1): There should be no icon on this message box. The title bar on this message box should read “Welcome!” The message box should display “Welcome to my program!” Figure 1 The second method should be named getName() and should display a JOptionPane that is customized in the following ways (Figure 2): There should be a question mark icon on this message box. The title bar on this message box should read “Name?” The message box should allow the user to input his or her name. Figure 2 The third method should be named getAge() and should display a JOptionPane that is customized in the following ways (Figure 3): There should be a question mark icon on this message box. The title bar on this message box should read “Age?” The message box should allow the user to input his or her age. Figure 3 The fourth method should be named displayMessages() and should display JOptionPanes as follows (Figure 4, Figure 5): The method should first display a JOptionPane with an information icon that has “Summary” as the title bar text. This message box should display the user’s name (X) and age (Y) in the format “X, you are Y years old!” Figure 4 After the user closes the first message box, a second one should display that does the following: Displays a warning icon. Has “Guess What?” as the title bar text. Displays the message “In 10 years, you will be (correct age) years old!” Figure 5 In order to accomplish this task, you will need to discover how to convert a String to an integer to perform the calculation. Write a driver class. This class should use the main method to call four methods in the application class that will display our JOptionPanes. Remember to write the source code for each class in a separate file…

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Open chat
1
You can contact our live agent via WhatsApp! Via + 1 4129036714

Feel free to ask questions, clarifications, or discounts available when placing an order.

Order your essay today and save 20% with the discount code SOLVER