
Hi,
I am an Indian student in USA.I have been able to write all the java codes successfully , however this one is giving me tremors.Any help would be highly appreciated.I am attaching the program herewith.It needs to develop a Galaxy?
The galaxy has up to 100 stars Each star has from 0 to 10 planets Each planet has from 0 to 2 moons (optional) �Stars have up to 10 planets Each star will have a color (relative temperature). This is expressed as a color (such as Blue-white, white, yellow, orange, red, brown, and black) Each star has an x-y position in the galaxy (up to 100 ly from the center of the galaxy) �Planets can be of three types Ã?¢ââ??‰â?¬Å? Nasty: Rocky or frozen (like Mercury or the planet formerly known as Pluto). Nice: Like Earth or Mars. Gas ball: Like Saturn or Jupiter. Planets have a habitability rating based on their type. Nasty 0-65%, Nice up to 100%, or Gas: only up to 30% (percentages in your galaxy may vary) Planets have a mineral content rated the same way. Nasty 0-100%, Nice: 0-75%, Gas: 0-25% Planets may have up to 2 moons (for xtra credit� Moons are the same as planets Ã?¢ââ??‰â?¬Å? buy only Nasty And moons donÃ?¢ââ??‰â??¢t have moons. Moons are optional for extra credit� S0001 = X:-24 ly, y:89 ly, z:38 ly | Type: Yellow S0001-01 = Distance=0.2 AU | Type: Nasty Habit: 45% | Minerals: 78% S0001-02 = Distance=2.0 AU | Type: Nasty Habit: 52% | Minerals: 11% S0001-02a = Distance=376,420 im | Habit: 47% | Minerals: 19% S0001-02b = Distance=404,266 im | Habit: 5% | Minerals: 40% S0001-03 = Distance=3.0 AU | Type: Nasty Habit: 23% | Minerals: 33% S0001-03a = Distance=534,582 im | Habit: 46% | Minerals: 26% S0001-03b = Distance=370,240 im | Habit: 24% | Minerals: 85% S0001-04 = Distance=4.2 AU | Type: Nasty Habit: 7% | Minerals: 16% S0001-04a = Distance=555,381 im | Habit: 41% | Minerals: 87% S0001-05 = Distance=5.4 AU | Type: Nasty Habit: 68% | Minerals: 10% S0001-05a = Distance=279,099 im | Habit: 7% | Minerals: 19% S0001-06 = Distance=5.9 AU | Type: Nasty Habit: 20% | Minerals: 4% S0001-07 = Distance=6.0 AU | Type: Nice Habit: 57% | Minerals: 47% S0001-08 = Distance=7.0 AU | Type: Nasty Habit: 41% | Minerals: 90% S0001-08a = Distance=510,656 im | Habit: 47% | Minerals: 91% S0001-09 = Distance=8.3 AU | Type: Gaseous Habit: 17% | Minerals: 1% �
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.