can anyone please help me to solve my program.....its saying write a program that determines your weight on another planet.The program should ask for the users, weight on earth. then present a menu of the other planet in pur solar system. the user should choose one of the planets from the menu and use a switch statement to calculate the weight on the shosen planet. use the following conversation factor for the other planet
mercury 0.37
venus 0.88
march 0.38
jupiter 2.64
saturn 1.15

Salem commented: help is not a thread title, no matter how many times you repeat it -1

Recommended Answers

All 3 Replies

i assume you know the equation linking weight, mass and gravity then?

If you do then its very simple (if your using c++)

Use switch for the menus (get them to type in the number of the option they want) - use cin and cout for I/O.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.