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...


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)


34<br>1 00<br>0 1 2 3<br>011 1<br>0<br>1<br>4<br>5<br>1<br>0<br>1<br>a<br>21<br>

Extracted text: 34 1 00 0 1 2 3 011 1 0 1 4 5 1 0 1 a 21
67<br>01<br>0<br>1<br>4.<br>6.<br>7.<br>0.<br>3<br>4.<br>5<br>1.<br>0.<br>0<br>1<br>0.<br>1<br>| 1<br>1<br>a<br>21<br>

Extracted text: 67 01 0 1 4. 6. 7. 0. 3 4. 5 1. 0. 0 1 0. 1 | 1 1 a 21

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here