It's my first code. I put alot of effort into it. I just haven't been able to see if it actually works because tomorrow I go the the computer lab to test it. Positive and negative feedback is welcomed. Also, here is a link to the description of what the code is suppose to have.
Link: http://pdfcast.org/pdf/assignment
Your long if else seems to work fine, you could make it dynamic though, you know, because technically pluto isn't a planet and there are more planets than those in our solar system. o
Oh and "your weight on moon" isn't it "The Moon"? Which begs the question... why isn't it "the mercury", "the venus", or "the mars"? The Earth and The Moon are important to us, but why prepend them with "The"?
aaaaaaanyways, you could make a "planet" class and a "planets" class to hold a vector of "planet"'s =)
edit: harsh packetpirate... harsh, oh and you don't have to make the planet class, especially since this is an assignment. I think it'd be cool anyways =)