aspose file tools*
The moose likes Java in General and the fly likes urgent help on magic square Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "urgent help on magic square" Watch "urgent help on magic square" New topic
Author

urgent help on magic square

avelin chen
Greenhorn

Joined: Dec 11, 2005
Posts: 27
i really really need help on this magic square program. first of all, i have been to numerous websites and still don't get the algorithm. Second, i am supposed to write a code(shown below) that outputs a magic square. could somebody tell ne just generally how to do this? THANK YOU SO MUCH!

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41508
    
  53
Hello "slow poke"-

Welcome to JavaRanch.

On your way in, you may have missed that JavaRanch has a policy on screen names, and yours does not conform to it (it particular, the name must not be obviously fictitious). We take this policy seriously, so please adjust it here.

Thanks, and enjoy your time here.


Ping & DNS - my free Android networking tools app
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41508
    
  53
As regards your question, it sound like this is a homework assignment or something. We don't provide people with solutions to those - if you have specific questions, though, we'll try to help. What does the program do so far, and what are you stuck with?
avelin chen
Greenhorn

Joined: Dec 11, 2005
Posts: 27
i'm sorry, i figured out how to write the code, but i also need to check to see if all the numbers add up correctly. could someone give me some kind of idea to do this? i'm kind of stumped at this point. how would you call the specific numbers in each row? help would be greatly appreciated. does my code look about right so far?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: urgent help on magic square