Question: Create a Java application IntegerAndDouble that uses a Scanner object to do the following: 1. Ask the user to enter an integer using prompt Enter

Create a Java application IntegerAndDouble that uses a Scanner object to do the following: 1. Ask the user to enter an integer using prompt "Enter an integer" 2. Get the integer and store it in an integer variable 3. Print the integer on a new line 4. Ask the user to enter a double number using prompt "Enter a double number: " 5. Get the double number and store it in a double variable 6. Print the double number on a new line 7. Calculate and display the square root of the double number 8. Get the integer part of the double number and store it in an integer variable 9. Display the integer part of the double number on a new line 10. Calculate and display the quotient of the integer number divided by the double number 11. Calculate and display the double quotient of the integer number divided by the integer part of the double number 12. Calculate and display the integer quotient of the integer number divided by the integer part of the double number 13. Calculate and display the remainder of the integer number divided by the integer part of the double number You should create just one Scanner object, and there is no starter code. Sample output Enter an integer: 3 The integer number is 3. Enter a double number: 5.9 The double number is 5.9. The square root of the double number is 2.4289915602982237. The integer part of the double number is 5. The quotient of the integer number divided by the double number is 0.5084745762711864. The double quotient of the integer number divided by the integer part of the double number is 0.6. The integer quotient of the integer number divided by the integer part of the double number is 0. The remainder of the integer number divided by the integer part of the double number is 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
