{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CP60710 - CP6 1 ECE 3331 COMPUTER PROBLEM 6 Spring 2007(due...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CP6.1 ECE 3331 COMPUTER PROBLEM 6 Spring 2007 (due 4/27) Your assignment is simply to redo Computer Problem 3 in Fortran77. That is, in this assignment you are to write a Fortran program that will read from a data file named cp60710.txt a sequence of triples of integers, iseed , n ,and num . For each triple, you are to construct num "random" n × n Latin squares using the algorithm described below and, for each square determine whether or not it is "magic". You may assume that 2 n 10. Your program must include: (1)a main program which reads values for iseed, n, and num. The values for iseed, n and num should be written, clearly labeled, to the output file cp60710.out. Then in a loop on the number of squares, the main program should invoke the subroutine gen (described below) to generate a Latin square, write it out to cp60710.out in usual matrix form, clearly labeled, invoke function magictst (described below) to determine whether it is a magic square,and write to cp60710.out an appropriate message based on the test. Your program should continue to read and process iseed,n, and num until the
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern