![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 20.10.2020 03:01 justinxvengance7249
Java Eclipse homework. I need help coding this|
Write a program that will determine the user’s weight on another planet. The program should ask the user to enter his weight (on earth) via the keyboard and then present a menu of the other mythical planets. The user should choose one of the planets from the menu, and use a switch (with an integer) statement to calculate the weight on the chosen planet. Use the following conversion factors to determine the user’s weight on the chosen planet.
Planet Multiply weight by
Mercury 0.378
Venus 0.907
Mars 0.377
Moon 0.166
Pluto 0.071
A typical output screen will be similar to the following:
What is your weight on the Earth? 135
Choose a planet or Moon.
1. Mercury
2. Venus
3. Mars
4. Moon
5. Pluto
Selection? 1
Your weight on Mercury would be 12.285
*Fix the decimal to 0.0 spaces.
![ansver](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 09:30, caromaybelline71
Write an essay on online collaboration, how to do it, the challenges, resolving the challenges, and consider whether the risks are greater than rewards. ( need )
Answers: 1
![image](/tpl/images/cats/informatica.png)
You know the right answer?
Java Eclipse homework. I need help coding this|
Write a program that will determine the user’s weig...
Questions in other subjects:
![Konu](/tpl/images/cats/mkx.png)
Arts, 22.10.2020 20:01
![Konu](/tpl/images/cats/obshestvoznanie.png)
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 22.10.2020 20:01
![Konu](/tpl/images/cats/mat.png)
Mathematics, 22.10.2020 20:01
![Konu](/tpl/images/cats/es.png)
Spanish, 22.10.2020 20:01
![Konu](/tpl/images/cats/en.png)
English, 22.10.2020 20:01
![Konu](/tpl/images/cats/istoriya.png)