Hi,
I have been doing more reading than necessary on functions and I still cannot figure out how to create the one I want to. and even if I could I do not know how to call upon it. SO I'm hoping i can get a little assistance on here. I need to create a function that will calculate the gravity factor for various planets. where the gravity factor = the mass of a planet/ mass of the earth divided by the radius of a planet/the radius of the earth. After i can create this function I dont understand how to call it when needed in my program. Please help!
I have been doing more reading than necessary on functions and I still cannot figure out how to create the one I want to. and even if I could I do not know how to call upon it. SO I'm hoping i can get a little assistance on here. I need to create a function that will calculate the gravity factor for various planets. where the gravity factor = the mass of a planet/ mass of the earth divided by the radius of a planet/the radius of the earth. After i can create this function I dont understand how to call it when needed in my program. Please help!
Comment