Question: Java. input entered from user from keyboard. Write a program that generates two random numbers from 0 to 10. It will then add, subtract and
Java. input entered from user from keyboard.

Write a program that generates two random numbers from 0 to 10. It will then add, subtract and multiply these two numbers. It will also take the first number to the power of the second and display the results for each calculation. Please note that the sample run is based on randomly generated numbers so your results will be different Sample run 9 +2 11 9-2-7 9 2 18 9 to the power of 2 81.00 A second sample run 2+9 11 2-9--7 2 * 9 18 2 to the power of 9 512.0 Requirements: Write part one and part two as separate programs. Part One should be named WordGame java and part two should be named RandomCalc.java. Instructions, prompts and answers should be in the form provided. Input should be entered by the user from the keyboard. Output should be displayed on the console
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
