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)
![34
1 00
0 1 2 3
011 1
0
1
4
5
1
0
1
a
21](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F0567084f-1253-4a16-9dc9-9dcf55f34f69%2Faabb5469-caa8-483d-86f3-26ea59592ce4%2Fxnj8yxp_processed.jpeg&w=3840&q=75)
![67
01
0
1
4.
6.
7.
0.
3
4.
5
1.
0.
0
1
0.
1
| 1
1
a
21](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F0567084f-1253-4a16-9dc9-9dcf55f34f69%2Faabb5469-caa8-483d-86f3-26ea59592ce4%2Fry8gw_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)