Conversation
|
This was a very difficult assignment for me. I wished that the instructions were a little bit more clear or that we went through each Wave and it's instructions during class to avoid confusion. Also, I need to continue to work on methods and class and learning how to use the instance variables in methods. |
Solar SystemWhat We're Looking For
Good job with this project! Your code has what we expected and runs as expected and looks good One thing we wish would've been in this project was accessing SolarSystem's planets. Also, there's one small bug with your program: if I run the program and then type "0" (or any invalid input), it will display the info for Earth. That's because the value of Otherwise, everything looks good and accomplishes the learning goals :) Good work overall |
Solar System
Congratulations! You're submitting your assignment.
Comprehension Questions
initializemethod in your class? - It's to help us define the parameters for the planets and to pass arguments to the methods.SolarSystemused anArrayvs aHash. - For the hash to find the name of each listed planet in my_planet hash, I had to create a separate name method in the Planet class so that it can output the list of names from the my_planet hash inside the SolarSystem class. Whereas to read the array, all I had to do was call the instance variable name with planet.name