Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Use basic java. Make it as simple as possible. Write a Java program to convert weight on different planets. Your user will have 3 options

image text in transcribedUse basic java. Make it as simple as possible.

Write a Java program to convert weight on different planets. Your user will have 3 options in a main menu Earth Moon Mars The Earth option will offer the user the option of converting from weight on Earth to weight on Moon or weight on Mars The Moon option will offer the user the option of converting weight on the Moon to weight on the Earth or weight on Mars The Mars option will offer the user the option to convert the weight on Mars to the weight on Earth or the weight on the Moons. Some of these formulas must be researched or you may just convert these formulas. Weight on Moon - (Weight on Earth/9.81) * 1.622 Weight on Mars (Weight on Earth/9.81) * 3.711 You are to do a functional decomposition here - at the very least have methods for input, for processing and for output The goal here is for main() to be self-documenting. Follow the examples from class. You may choose to use JOptionPane for input and output as demonstrated in class. All output should be well-formatted. Arun of your program might look like this (if you were using System.out.println and Scanner) - user input is shown in red: Conversion options: 1. Earth 2. Moon 3. Mars Which conversion would you like to perform? 1 You have chosen Earth conversion. Conversion options: 1. Earth to Moon 2. Earth to Mars Which conversion would you like? 2 Enter the weight on Earth 100 Pound equal to 38 pounds on Mars

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions