Question: For Java please : Ask the user to enter their name and store it in a String using a JOptionPane windovw Ask the user to
Ask the user to enter their name and store it in a String using a JOptionPane windovw Ask the user to enter two decimal numbers, using two JOptionPane windows. Ask the user if they want to add, subtract, multiply or divide the two numbers (first entered by second entered) -use a OptionPane with four buttons for this. Tell the user their math problem and result, using their name, the operator, and the operands, in a JOption Pane dialog. For example: Hi Name, 3.3 / 1.5-2.2 If the user pressed the red X instead of choosing an operation output an error message instead. All windows should have appropriate text, titles, and icons. No interaction with the user should be via console (Scanner/ System.out.print/println), only through IOptionPane
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
