subject

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


Create and initialize a 5 x 5 array as shown below.

02 000
е 2 ооо
0 2 200
02020
0 2 0 0 2
First,

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:20
Http is the protocol that governs communications between web servers and web clients (i.e. browsers). part of the protocol includes a status code returned by the server to tell the browser the status of its most recent page request. some of the codes and their meanings are listed below: 200, ok (fulfilled)403, forbidden404, not found500, server errorgiven an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.
Answers: 2
question
Computers and Technology, 23.06.2019 21:30
Which of the following includes the three primary network access technologies? dsl, cable modem, broadband lan, wan, man voip, uc, iptv tcp/ip, ftp, dhcp
Answers: 2
question
Computers and Technology, 24.06.2019 02:30
Assume a class window with accessor method getwidth that accepts no parameters and returns an integer. assume further an array of 3 window elements named winarr, has been declared and initialized. write a sequence of statements that prints out the width of the widest window in the array.
Answers: 2
question
Computers and Technology, 25.06.2019 15:30
Which of the following sets of acronyms is concerned with encoding data for secure transmission? wan, lan vpn, nic ipsec, ssh nat, ssl
Answers: 1
You know the right answer?
Create and initialize a 5 x 5 array as shown below. 02 000
е 2 ооо
0 2 200
02020...
Questions
question
Mathematics, 27.09.2020 14:01
question
Mathematics, 27.09.2020 14:01
question
Mathematics, 27.09.2020 14:01
question
Mathematics, 27.09.2020 14:01
question
Mathematics, 27.09.2020 14:01