Hide Assignment Information
InstructionsLab:
Write a program that does the following:
– Create an Object Constructor that allows the user to create a new Planet object.
It should contain properties for the things that a planet can have, like its name, it size (circumference), distance from the sun, how many moons, is it has water, if it has oxygen, if it has life, and what ever else you think it should have.
2. Add a method that allows you to ask if the planet has life that returns a boolean value.
3. Go back to lesson 8, look at how to create an array of objects, then, add to the program a galaxy array that can store all of your planets as you make them.
Note: There is no SMALL GROUP assignment this week.
All work is due by Sunday at 11:59 p.m.