100 POINTS PLEASE HELP
Create and initialize a 5 x 5 array as shown below.
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

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.

Code should be able to do this

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


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


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

Answers

Answer 1

Answer:

hope this helped ,do consider giving brainliest

Explanation:

import numpy as np

#PrintArray Function

def printArray(array):

for i in range(len(array)):

for j in range(len(array[i])):

print(array[i][j], end= " ")

print()

#Flip horizontal function

def flipHorizontal(array):

#reversing the order of arrays

array2 = np.fliplr(array).copy() printArray(array2)

#Flip Vertical function

def flipVertical(array):

#Preserving the order of array and reversing each array.

array3 = np.flipud(array).copy() printArray(array3)

#Main() function def main():

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]]

print("The array: \n")

printArray(array)

print("\nFlipped horizontally: \n") flipHorizontal(array)

print("\nFlipped vertically: \n") flipVertical(array)

if __name__=="__main__":

main()Explanation:

Answer 2

Answer:

Answer:

hope this helped ,do consider giving brainliest

Explanation:

import numpy as np

#PrintArray Function

def printArray(array):

for i in range(len(array)):

for j in range(len(array[i])):

print(array[i][j], end= " ")

print()

#Flip horizontal function

def flipHorizontal(array):

#reversing the order of arrays

array2 = np.fliplr(array).copy() printArray(array2)

#Flip Vertical function

def flipVertical(array):

#Preserving the order of array and reversing each array.

array3 = np.flipud(array).copy() printArray(array3)

#Main() function def main():

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]]

print("The array: \n")

printArray(array)

print("\nFlipped horizontally: \n") flipHorizontal(array)

print("\nFlipped vertically: \n") flipVertical(array)

if __name__=="__main__":

main()Explanation:

Explanation:


Related Questions

When would a flag variable be most useful?
1.when printing the number of items in a list

2.when checking the condition of a variable in a while loop

3.inside a function that prints the largest side of a triangle

4.when initializing a list

Answers

2. When checking the condition of a variable in a while loop.

If you were designing facial recognition software based on machine learning,
how would you avoid algorithmic bias?
O A. Make sure to avoid using any algorithms in the program
O B. Ask the programmers if they are biased against groups of people
O C. Use training images that show a diverse group of people
D. Use photos with people facing in all different directions

Answers

To avoid algorithmic bias, Ask the programmers if they are biased against groups of people.

How do you avoid an algorithm bias?

The right step is to avoid this kind of bias is to take a record of inventory of the algorithms. Note that Developers can communicate with stakeholders to know more about about how and when algorithms are being applied.

Once you have known the algorithms, then you can appoint a person to monitor the algorithms, mostly among wide groups.

Learn more about algorithm  from

https://brainly.com/question/24953880

Look at the color key below the map that shows the overall performance range. What is the range for 1 Year Performance? How does it compare to the 1 Day Performance range?

Answers

A performance range simply means the threshold and maximum percentage of shares that may become earned.

What is a performance range?

Your information is incomplete. Therefore, an overview will be given. A performance range is the maximum percentage if shares that may become earned shares due to the attainment of the requirements of the performance.

It should be noted that in this case, the opportunity to incentivize performance will be associated with the relative performance.

Learn more about performance on:

https://brainly.com/question/26256535

Which type of software-based attack tracks all of your browser activity and relays it to cybercriminals?.

Answers

Answer: Spyware

Hope that helps!

trying to make the baseplate red and turn off can collide then the game waits 5 seconds and turns on can collide, making the baseplate green aswell.
would this script work?

local myBasePlate = game.Workspace.Baseplate

local function makeBasePlateRed()
myBasePlate.CanCollide = false
myBasePlate.BrickColor = BrickColor.Red()
end

makeBasePlateRed()

wait(5)
local function makeBasePlateGreen()
myBasePlate.CanCollide = true
myBasePlate.BrickCOlor = BrickColor.Green()

Answers

Answer:

Explanation:

yes

but dont forget to call makeBasePlateGreen

maybe you would call it at the end of the program?

by the way you have a typo at the end

make the O lowercase

myBlasePlate.BrickColor = BrickColor.Green()

and then add this to the end

makeBasePlateGreen()

so you call the function and actually use it.

Answer the questions given below, share your ideas.Use the space for your answer.

Pa answer pi.:^)​

Answers

Answer:

I would get rid of the machine and well

What is the name for the base-2 system used by computers to represent
data?
O A. Unicode
O B. Binary code
C. Hexadecimal code
D. Decimal code

Answers

Answer:

B. Binary Code

Explanation:

Binary code is the base-2 system used by computers to represent data. Binary code consists of 0's and 1's which can be used to represent states such as on or off; go or no-go and more.

A team of computer science researchers develop a program for searching trees that can be run in parallel. When they use distributed computing techniques to run the program on six computers in parallel, they find a speedup of 3. In this case, what does a speedup of 3 indicate?

Answers

Answer:

The program completed in a third of the time with six computers versus one computer.

Explanation:

The speedup of a parallel solution is measured in the time it took to complete the task sequentially divided by the time it took to complete the task when done in parallel (or put succinctly, speedup = sequential/parallel).A speedup of 3 means that the program took three times as long on one computer, which is the same thing as saying it took a third of the time with all six computers working in parallel.

Select the correct answer from each drop--down menu

Mike wants to prepare a project estimation and incorporate this in a SQA plan. which technique should mike use for this purpose?

Mike should use ______ to prepare a project estimation and incorporate this estimation in an SQA plan. This technique is part of SQA activity of applying _______ engineering.

1. interviews, testing, reviews
2. hardware, software, product

Answers

Mike should use Software quality assurance (SQA) technique.

Mike should use reviews to prepare a project estimation and incorporate this estimation in an SQA plan. This technique is part of SQA activity of applying software engineering.

Which is a SQA technique?

Software quality assurance (SQA) is known to be a type of method used to assures that all software engineering procedures, methods, or activities etc., are been monitored and work with the defined standards.

Note that these defined standards is one that has  one or a composition such as ISO 9000, etc.

Learn more about Software from

brainly.com/question/24930846

Answer:

i dont have the full answer but i do know for sure that

reviews is WRONG

2. software is RIGHT

Explanation:

platooo

scientific name of computer ?

Answers

Answer:

supercomputer. (redirected from scientific computer)

Explanation:

hope it will help you..

Scientific name of computer supercomputer.

What are Supercomputer?

Supercomputing and other computing methods are sometimes used interchangeably. Yet, there are times when the synonyms aren't clear. To assist clarify some similarities and differences between various computer types, here are some common analogies.

While supercomputing typically refers to the process of complex and massive calculations used by supercomputers, high-performance computing (HPC) is the utilization of several supercomputers to execute difficult and huge computations.

Supercomputers are often known as parallel computers since they can perform parallel processing. Parallel processing is the simultaneous use of many Processors to solve a single calculation.

Therefore, Scientific name of computer supercomputer.

To learn more about Supercomputer, refer to the link:

https://brainly.com/question/30227199

#SPJ6

Pls help xD. In pseudocode or python code please. Will mark best answer brainliest. Thx

Answers

Answer:

I'm doing my best to send you my answer,

Explanation:

The coding will be below

What can a company learn by studying website analytics for its website?.

Answers

Answer:

they can learn how people interact with it

Explanation:

Network Security Fun. > Quizzes > Practice Exam (for midterm: m.

Practice Exam (for midterm: mods 1-7)

Started: Mar 11 at 2:07pm

Quiz Instructions

nts

Question 21

1 pts

Sean is an information security architect at a financial firm. As his first project, he must design and build an

efficient, sure-shot, yet cost-effective solution to Tetect and prevent bank credit card fraud. How should Sean

proceed?

O Design a solution that is confined to and hardcoded with a specific place and specific time. If the user

males transaction at a different place or time it will be considered an outlier and trigger an alert

Answers

Answer : Sean is an information security architect at a financial firm. As his first project, he must design and build an efficient, sure-shot, yet cost-effective solution to Detect and prevent bank credit card fraud. How should Sean proceed? O Design a solution that is confined to and hardcoded with a specific place and specific time.

Explanation: Sean is an information security architect at a financial firm. As his first project, he must design and build an efficient, sure-shot, yet cost-effective solution to Detect and prevent bank credit card fraud. How should Sean proceed? O Design a solution that is confined to and hardcoded with a specific place and specific time.

Unit 6: Lesson 2 - Coding Activity 3 for projectstem. Org coding thing

Answers

Project Stem was founded as a 501(c)(3) non-profit corporation. Its goal is to help students get the confidence they need to participate, learn, and continue in the subject of computer science.

What is a Coding Activity?

A coding activity refers to activities that help the students learn to code. Some of the activities are designed as:

GamesPuzzles and Actual assignment.

Examples of coding activities could be:

To guide a Jupiter RoverTo create a pixel puzzle etc.

Learn more about Coding Activities are:
https://brainly.com/question/25250444

A company has employees who write down passwords, which should be kept private, on sticky notes. Given this scenario, what should the IT security department implement to prevent this type of mishandling of confidential information

Answers

Save the passwords to an encrypted database, saving the passwords as hash values to keep confidentiality.

How to transfer polygon from eth to polygon in ledger live

Answers

Import it to there and there it you go!

Select Bridge to Polygon from the three-dot option for Ethereum. Fill in the amount of ETH one want to bridge onto Polygon in the pop-up window.

What is polygon in ledger live?

Polygon is a Layer 2 solution that aims to fix all of Ethereum's major issues while also making crypto more accessible to the general public.

Popular blockchain networks, such as Ethereum, are overcrowded and costly to use.

Thus, by selecting the Bridge to Polygon from the three-dot option.

For further details about polygon in ledger live, click here:

https://brainly.com/question/14797470

#SPJ4

What is one major reason various industries have adopted the use of automated robotic assembly?.

Answers

The major reason various industries have adopted the use of automated robotic assembly is to increase manufacturing productivity.

What is automated robotic assembly?

Automated robotic assembly is the use of automotive technology to operate different areas in the manufacturing industries.

Automated robotics are used to perform the following tasks:

welding, assembly,shipping, handling raw materials, andproduct packing.

The reason why various industries have adopted the use of automated robotic assembly is that it saves time and there is increase in the amount of products manufactured that when manually handled.

Learn more about automation here:

https://brainly.com/question/11211656

90 POINTS Hazel is working with a database to help determine if the company she works for is making or losing money. Hazel has organized the expenses category from the smallest expense to the largest expense. Which of the following database features has Hazel employed to organize the data?

A.
sorting

B.
filing

C.
nesting

D.
filtering

Answers

Answer:

a

Explanation:

Answer:

it's A  sorting sorry if it's wrong

Explanation:

100 points.
What is steganography? Do online research about a tool named Open Stego. Discuss the applications of this tool and explain how it can be used. Then, use Open Stego to encrypt and decrypt messages into pictures. Explain the steps you use to find the hidden messages.

Command line is the user interface in the computer’s operating system and is built into all computers. Do online research and describe how to perform steganography using the command line.

Answers

Steganography is the practice of hiding a secret message inside of (or even on top of) something that is not secret.

The attacker doesn’t need to trick the user into using applications such as Steghide. In this case, the hacker – or pen tester – is “living off the land.” The attacker is using a steganographic application to take advantage of common Windows applications and features such as Excel and PowerShell. All the victim needs to do is read the doc, and an unfortunate series of events begins to occur.

I can't do the Open Stego thingy bc I can't.

Jake owns a garden supply store. his revenue at the end of last month was $12,200. what is Jake's run rate?​

Answers

Based on the information provided, Jake's annual run rate is $146,400.

What is the run rate?

This refers to the general performance of a company based on the profits of a specific period.

How to calculate the run rate?

The general formula for this factor is:

Revenue in a specific period/number of periods in the year

This means:

12,200 x 12 = 146,400

This means in a year it is expected Jake makes a total of $146,400.

Learn more about run rate in: https://brainly.com/question/13869204

Answer:

D: 146,400.

Explanation:

Which of these is most likely to contribute to the long term of a local ecosystem?

Answers

i would help but you didn’t say what these is

What are different social phenomenas are you aware of that used part of a social movement, change, or cause

Answers

Answer:

Social change in the broadest sense is any change in social relations. Viewed this way, social change is an ever-present phenomenon in any society.

Explanation:

Similarities between Off-site and On-site

Answers

Answer:

As adjectives the difference between onsite and offsite

is that onsite is on or at a site while offsite is away from a main location; in a place not owned by a particular organisation.

Choose the response that best completes the following statement. (5 points) Simulation is the creation of a model that can be manipulated ________ to decide how the physical world works. creatively logically strategically virtually

Answers

Simulation is the creation of a model that can be manipulated  logically to decide how the physical world works.

What is the simulation of a model?

Simulation modeling is known to be the act of making  and analyzing a kind of digital prototype of a physical model to know  its performance.

Note that this modeling is often used to help designers and engineers to know if and what conditions ways or  a part may  fail and what loads it can hold.

Learn more about Simulation from

https://brainly.com/question/24912812

What standard tcp port is reserved by iana for the openvpn service to operate on?

Answers

Answer:

1194 is the OpenVPN port reserved by the IANA

Explanation:

How to ignore punctuation before and after a word javascript

Answers

Answer:

If you want to remove/ ignore punctuation before and after a word javascript, my suggestion is to remove specific punctuation from a string, it will probably be best to explicitly remove exactly what you won't like.

P.W. Singer jokes about how many people are using Wang computers. What point is he making with this joke?

Answers

P.W Singer stated:

"And think about it this way: We don't use Wang computers anymore, or Commodore 64s, kids don't play Atari videogames. Those companies may have been at the forefront of the digital revolution, they're not anymore. Same thing in war. You know the British invent the tank. The Germans figure out how to use the tank better,"

Enjoy

Please have a great day <3

When preparing your taxes, what can possibly help
reduce the amount of taxes that you owe?
Stock and savings interest
Sharing what you earned on a W-2 or 1099 form
Having stock dividends
Credits and deductions

Answers

When preparing your taxes, what can help is Sharing what you earned on a W-2 or 1099 form.

What are some expenses that can be taken as a tax deduction?

Note that a  person's Office supplies, credit card processing fees, tax preparation fees, etc., are some expenses that are taken as tax deductions.

Conclusively, Taxes are some amount of money taken by the government from our income. By Sharing what you earned on a W-2 or 1099 form, one can know the amount you earn.

Learn more about taxes from

https://brainly.com/question/25783927

Answer:

When preparing your taxes, credits and deductions can possibly help reduce the amount of taxes that you owe.

Explanation:

45 points!!!!!
One of the options for a software engineer is to work with the testing team of an SDLC project. In your view, state the pros and cons of placing a junior engineer with the testing team. Analyze it from both the company’s and employee’s points of view.

Answers

The pros and cons of placing a junior engineer with the testing team is that:.

The pros is that they get to learn.The cons is that one has to go back and try to explain things step by step which may slow down the project process.

What are the pros and cons of a software engineer?

The pros of a person as a software engineer are the fact that they gett paid well, they are often respected, and they have the freedom to work from home,

The cons or disadvantages is that they often feels stressed, overwork themselves and others.

Learn more about SDLC project from

https://brainly.com/question/26872062

Which of the following statements is true?
Group of answer choices

1.An array can only be used to hold number data.

2.An index refers to the position of a particular element in an array.

3.An index does not need to be used when looping through an array.

4.Only a while loop can be used when iterating through an array.

Answers

1 an array can only be used to hold number data
An array can hold any data type, it just has to have the same data type. The right answer is 2.
Other Questions
in a wagner matinee how long after clarck receives the letter does his aunt arrive in boston?one year one dayone week one monthin a wagner matinee why does clark worry that georgina feel uncomfortable in the concert hall?georgiana says that she has a headache georgiana is much older that most of the other audience members georgiana clothes are shabbier that everyone else it is quite warm in the concert hall In october 1962, american spy planes discovered that the soviet union was about to install nuclear missiles in cuba, 90 miles from florida. How did president john f. Kennedy respond to this crisis?. What is Awit ng Gabi ni Sisa all about? Margaret meads investigation of the tchambuli culture demonstrated that gender roles are ___________. a. rigid across cultures b. similar in every culture c. variable across cultures d. undefinable in a culture Stranded by Tracy Williams: APRIL 25. Even the morning air is sultry today. I would have fished for my breakfast last night before sunset, but I knew that it would surely spoil before morning. Drinking my water warm has taken some getting used to. It's funny how we take certain things like ice for granted. If I become desperate I can always resort to eating the freeze dried rations, but that defeats my purpose for being here to begin with. Besides, they are about as edible as the tough, dry bark in a long dead tree. I think I have almost learned to track the time by 1 the rays of the sun. Time, like water, seems to sit in a pot unable to boil if your eye isn't constantly on it. Time seems to be the only thing that man hasn't learned to control; but | am sure some genius like Fred Johnson is currently working on it, while sitting in a cubicle checking the four thousand emails on his smart phone. As for me, I think I will lean back on this dune and nap a while before I head out to catch some lunch. The passage is best described as a A) news story B) diary entryC) fictional play. D) business letter. What is a federal budget Please Help Me! I have test on Monday! Post-translational modifications of proteins may include which of the following processes? If s = 1 over 4 unit and A = 16s2, what is the value of A, in square units? ____ square unit(s). (Input whole number only.) "The crucible" The purpose of the allusion in Rebeccas quote in Act IV, "Let you fear nothing! Another judgment waits us all," is toa. The freeing of his wife and unborn childb. Abigails escape with Parris moneyc. Hales refusal to help the courtsd. The salvation of his own soul does anybody know what this mean? on the red circle? If 6/10 is multiplied by a fraction less than one what will be the product? at the munich conference in 1938 britian and france did what Each of the two numbers were increased by 10. How did the average of the two numbers change? What is the value of x? What is the country to the north of the U.S.? AlaskaMexicoCanadaGreat Britain Videos Incorporated charges a membership fee of $4.99 plus $0.99 for each movie you watch. Videos Plus does not charge a membership fee but charges $2.99 per movie. Videos Plus is a better deal than Videos Incorporated. Which inequality represents this situation?What is the inequality symbol for the situation? Answer Chocies: >, is chaos good to have in life Researchers studied language development in the same group of children every year over a five year period. this research design is called: In which political system do people govern themselves?.