This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes urgent help on magic square Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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: 35237
    
    7
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.


Android appsImageJ pluginsJava web charts
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35237
    
    7
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: urgent help on magic square
 
Similar Threads
How to initialize an Array in this occasion?
AOOB exception in my CODE-PLEASE HELP!
User Input
Need An Idea to solve This
Battleships - guys please help me out!