Create and initialize a 5 x 5 array as shown below.
02 000
е 2 ооо
0 2 200
02020...
Computers and Technology, 05.05.2021 20:10 serellehunt
Create and initialize a 5 x 5 array as shown below.
02 000
е 2 ооо
0 2 200
02020
0 2 0 0 2
First, write a printarray() function that prints out the array. Use a single parameter in the definition of the function, and pass the array
you created above as the parameter. Call the function so it prints the original array.
Then write a flipHorizontal() function that flips the contents of the array horizontally and prints the result. This means that the values in
each row should be reversed (look at the second array in the sample run of the program for clarity). Again, this function should pass the
original array as the parameter. Within your fliphorizontal() function, call the printArray function to print the new array that has been
horizontally flipped.
Reset the array back to the original 5 x 5 array we started with.
Then write a flipvertical function that flips the contents of the array vertically and prints the result. This means that the values in each
column should be reversed (look at the third array in the sample run of the program for clarity). Again, this function should pass the original
array as the parameter. Within your flipvertical() function, call the printarray() function to print the new array that has been vertically
flipped.
The sample run below shows how your code should print the original array, followed by the horizontally-flipped array, followed by the
vertically-flipped array. Notice that the output below includes blank lines between each of the three arrays - yours should do the same.
Pls help me
Answers: 2
Computers and Technology, 22.06.2019 15:00
When designing content as part of your content marketing strategy, what does the "think" stage represent in the "see, think, do, care" framework?
Answers: 3
Computers and Technology, 22.06.2019 23:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 1
Computers and Technology, 23.06.2019 14:30
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
Computers and Technology, 24.06.2019 21:00
When replacing a thermostat or water pump, coolant drained from the cooling system should be
Answers: 1
Mathematics, 19.05.2020 22:06
Mathematics, 19.05.2020 22:06
French, 19.05.2020 22:06
Mathematics, 19.05.2020 22:06
History, 19.05.2020 22:06
Mathematics, 19.05.2020 22:06
Chemistry, 19.05.2020 22:06
Chemistry, 19.05.2020 22:06
History, 19.05.2020 22:06