Menu

(Solved) : Friend S Photo Editing Software Stopped Working Volunteer Help Wants Pictures Reversed Hor Q43979378 . . .

Your friends photo editing software has stopped working so you volunteer to help. She wants all the pictures reversed in the

it needs to be in java

1 2- 3 4 15 public int[][] flipPhoto(int[][] picture), { // Your code here. }

Your friend’s photo editing software has stopped working so you volunteer to help. She wants all the pictures reversed in the horizontal direction along the y-axis so that items on the left side of the picture are now on the right side, and vice versa. Pictures are stored as 2-D arrays, where each “pixel” stores a single brightness value. In other words, you need a method that will take a 2-D array and reverse its columns so that the first becomes the last, the second becomes the second to last, and so on. Given the following starter code, write the method to help your friend. 1 2- 3 4 15 public int[][] flipPhoto(int[][] picture), { // Your code here. } Show transcribed image text Your friend’s photo editing software has stopped working so you volunteer to help. She wants all the pictures reversed in the horizontal direction along the y-axis so that items on the left side of the picture are now on the right side, and vice versa. Pictures are stored as 2-D arrays, where each “pixel” stores a single brightness value. In other words, you need a method that will take a 2-D array and reverse its columns so that the first becomes the last, the second becomes the second to last, and so on. Given the following starter code, write the method to help your friend.
1 2- 3 4 15 public int[][] flipPhoto(int[][] picture), { // Your code here. }

Expert Answer


Answer to Your friend’s photo editing software has stopped working so you volunteer to help. She wants all the pictures reversed i…

OR