Project Description
This program, space.c, is designed to help an interplanetary space boxer track his weight across different planets. As the boxer aims to win championship belts for various weight categories on planets within the solar system, this tool will assist in calculating his weight on the desired planet.
The program performs the following steps:
- Asks the user to enter their weight on Earth.
- Prompts the user to select a planet by entering a corresponding number.
- Calculates and displays the user's weight on the selected planet based on gravitational differences.
- Compile the program:
gcc space.c -o space
- Run the program:
./space
- Follow the on-screen instructions to input your Earth weight and select a planet.
Each planet is represented by a number in the program:
- 1 - Mercury
- 2 - Venus
- 3 - Mars
- 4 - Jupiter
- 5 - Saturn
- 6 - Uranus
- 7 - Neptune
This program was created by A.MUSTAPHA.