Answer to Question #118469 in Python for Zach

Question #118469
Create a 5 x 5 array as shown below. Then, write the following subprograms:

printArray (prints out the array)
flipHorizontal (flips the contents horizontally, then calls printArray)
flipVertical (flips the contents vertically, then calls printArray)
Then, have the subprograms run sequentially in a main program for grading.

Note: you should not modify the array in place; you should instead create a new array each time it's flipped.

Sample Run
The array:

0 2 0 0 0
0 2 0 0 0
0 2 2 0 0
0 2 0 2 0
0 2 0 0 2
Flipped horizontally:

0 0 0 2 0
0 0 0 2 0
0 0 2 2 0
0 2 0 2 0
2 0 0 2 0
Flipped vertically:

0 2 0 0 2
0 2 0 2 0
0 2 2 0 0
0 2 0 0 0
0 2 0 0 0
1
Expert's answer
2020-05-26T18:06:46-0400
Dear Zach, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS