1.Create an array according to the array size entered from the outside and fill the values in the array randomly with 0-1 values. This operation will be done in the main method.Perform the following methods on the array. 1.a valueFind (): The method that accepts the values in the array as a binary number and finds the decimal equivalent of this number and writes it to the screen. 1.b Print to screen (): method to display all the elements of the array. The array values will be written on the screen horizontally. 1.c Shift right (): A method that performs the operation of shifting the elements of the array one to the right according to the index value received from the user. 1 will be added to the value of the index specified by the user. example=phtoto1 1.d Shift left (): A method that performs the operation of shifting the elements of the array left one by one according to the array index value received from the user. 0 will be added to the value of the index specified by the user. exp=photo2 (will be encoded in java)
1.Create an array according to the array size entered from the outside and fill the values in the array randomly with 0-1 values. This operation will be done in the main method.Perform the following methods on the array.
1.a valueFind (): The method that accepts the values in the array as a binary number and finds the decimal equivalent of this number and writes it to the screen.
1.b Print to screen (): method to display all the elements of the array. The array values will be written on the screen horizontally.
1.c Shift right (): A method that performs the operation of shifting the elements of the array one to the right according to the index value received from the user. 1 will be added to the value of the index specified by the user. example=phtoto1
1.d Shift left (): A method that performs the operation of shifting the elements of the array left one by one according to the array index value received from the user. 0 will be added to the value of the index specified by the user. exp=photo2
(will be encoded in java)
Step by step
Solved in 4 steps with 3 images