subject

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
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:40
It is vital to research each of the services you plan to disable before implementing any change, especially on critical machines such as the: a. servers in the test environment. b. domain controller and other infrastructure servers. c. desktops that have previously been attacked. d. desktops used by upper-level management.
Answers: 2
question
Computers and Technology, 22.06.2019 11:30
Communication is the exchange of information. true false
Answers: 2
question
Computers and Technology, 22.06.2019 21:00
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings starting from index 0. for each match, add one point to userscore. upon a mismatch, exit the loop using a break statement. assume simonpattern and userpattern are always the same length. ex: the following patterns yield a userscore of 4: simonpattern: rrgbryybgy userpattern: rrgbbrybgy
Answers: 2
question
Computers and Technology, 23.06.2019 00:50
Representa os dados de um banco de dados como uma coleç? o de tabelas constituídas por um conjunto de atributos, que definem as propriedades ou características relevantes da entidade que representam. marque a alternativa que representa o modelo descrito no enunciado. escolha uma:
Answers: 3
You know the right answer?
Java Eclipse homework. I need help coding this| Write a program that will determine the user’s weig...
Questions
question
Social Studies, 19.09.2019 17:10
question
English, 19.09.2019 17:10
question
History, 19.09.2019 17:10
Questions on the website: 13722363