Question: urgent answer fast Write a java program that takes exactly 5 values from the user and store them in an array called inputArray. The program
urgent answer fast
Write a java program that takes exactly 5 values from the user and store them in an array called inputArray. The program should take another integer input n from the user, create a second array called the outputArray, store the nth power of the integers from inputArray in the outputArray. Display the values of both arrays. HINT: All values will be in double except for size of the array. Sample run of the program: Enter 5 intergers for inputArray >0 1 2 3 4 Enter the value of n > 2 Input array is > 0.0, 1.0, 2.0, 3.0, 4.0, Output array is > 0.0, 1.0, 4.0, 9.0, 16.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
