Question: Write a complete Java program that performs the following tasks: Take 9 integer inputs from the user and store them in an array ( arr1
Write a complete Java program that performs the following tasks:
Take 9 integer inputs from the user and store them in an array (arr1). The elements of the arr1 must be your student id.
Print the elements of the array.
Copy all the elements in another array (arr2) but in reverse order and print them on screen using enhanced for loop.
Generate a random number between 1 & 6 and store it in a variable num.
Find and print the following in the arr 2.
Numbers that are greater than num
Numbers that are smaller than num
wangenase exeet grow Anoligninentagt Frint whe value of ereitid zrint the value of arelitil. Frint the value of arrilly Frint tha value of areindy. zrine the value of arritdi Frint the value of arrilsi. Frint the walue of arrinti Frine whe value of aret"?) Frint the value of arrittil The value of arri.10) in I. The value of arri:1) lis 2 Tha vatue of arridzi in a That value of arra:3 is is 4 The value of arritel in of The value of arri 6 is in 7 The value of axr1171 lin a The value of arri.18) in o nurbers that are grater wath 3,9 a 76
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
