Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 of 2 Assignment 5 : GUI by JOptionPane Due: Thursday July 1 8 A . Requirements Please write a Java program named as DemoYourLastName,

1 of 2
Assignment 5: GUI by JOptionPane
Due: Thursday July 18
A. Requirements
Please write a Java program named as DemoYourLastName, so that it runs as follows:
As the figure below, it requests the user to enter his/her name via a pop-up window.{:[" Enter your name: "],[" John Smith "],[" javac D"]:}
Cancel
java DemoAN
javac DemoAN.java
java DemoAN
java DemoAN
2. After the user provides his/her name and click OK button, the program requests the user to provide his/her income as follows via a pop-up window:
3. After the user provides the income and clicks OK button, the program outputs information as follows via a pop-up window:
1 of 2
Assignment 5: GUI by JOptionPane
Due: Thursday July 18
A. Requirements
Please write a Java program named as DemoYourLastName, so that it runs as follows:
As the figure below, it requests the user to enter his/her name via a pop-up window.After the user provides his/her name and click OK button, the program requests the user to provide his/her income as follows via a pop-up window:Enter your incomjavac DG10000After the user provides the income and clicks OK button, the program outputs information as follows via a pop-up window:
2 of 2B. Submissions
Your program (DemoYourLastName.java)[80 marks]
Screenshots to show all the 3 steps [20 marks]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions