Using NetBeans, write a Java program that first asks the user to enter two integers using JOptionPane. Print the sum, difference, product, quotient, and modulus to the console and to a dialog - console output and GUI output are both required. Then ask the user to enter two real numbers from the console and then print the sum, difference, product, quotient, and modulus of the two real numbers to the console and to a window - again console and GUI output are both required. Supply meaningful prompts and format the output for the console - use printf and for real numbers specify the width and number of digits after the decimal. You must indent your code and follow java conventions.
Using NetBeans, write a Java
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 4 images