subject
Computers and Technology, 30.10.2019 02:31 adiaz97

In a previous assignment we worked on an algorithm that produced magic squares of odd order. we avoided generating magic squares of even order because the algorithm for generating them is more complicated. here is a very famous magic square that is featured in the painting melancholia by albrecht durer. 16 3 2 13 5 10 11 8 9 6 7 12 4 15 14 1 in this assignment you will generate onlyten magic squares of order 4 through permutation. the process is straight forward but time consuming. here are the steps: create a 1-d list of integers 1 through 16. permute this list of integers. for each permutation convert the 1-d list into a 2-d list that is 4 x 4. check if that 2-d list is a magic square. if it is, then print it out. stop when you have gone through all the permutations.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 19:30
Dtp allows you to manipulate text boxes in the following ways. more than 1 answer. a.move them b.rotate them c.resize them d.all of the above e.none of the above
Answers: 1
question
Computers and Technology, 24.06.2019 20:20
Write python code that prompts the user to enter his or her age and assigns the user’s input to an integer variable named age.
Answers: 1
question
Computers and Technology, 24.06.2019 21:40
Clunker motors inc. is recalling all vehicles in its extravagant line from model years 1999—2002 as well as all vehicles in its guzzler line from model years 2004—2007. a boolean variable named recalled has been declared. given a variable modelyear and a string modelname, write a statement that assigns true to recalled if the values of modelyear and modelname match the recall details and assigns false otherwise.
Answers: 2
question
Computers and Technology, 24.06.2019 23:40
Which slide should you change so it reflects om all sides of your presentation
Answers: 1
You know the right answer?
In a previous assignment we worked on an algorithm that produced magic squares of odd order. we avoi...
Questions
question
Mathematics, 31.03.2020 21:44
question
Mathematics, 31.03.2020 21:44
Questions on the website: 13722361