Question: help programming Question 1: Martian Weight The second assignment is to demonstrate an initial use of variables. You can write a programs that convert from

 help programming Question 1: Martian Weight The second assignment is to

help programming

Question 1: Martian Weight The second assignment is to demonstrate an initial use of variables. You can write a programs that convert from weight in Pounds on the earth, to equivalent Weight in Pounds on the Mars. Your version must handle inputs in fractions of a weight by using the "double" type. The equation for converting is: Weight on the Mars = Weight on Earth /9.81 * 3.711 Final Weight on the Mars calculated should be an integer 100.0 lbs = 37 lbs on Mars 187.5 lbs = 70 lbs (Note that they are always rounded down). The java projects are named yourname WeightOnMars. Create a class with the same name for first project. The program outputs a pleasant greeting that introduces the program will convert you into a Martian) The program outputs a meaningful message about the conversion along with the result. The program computes the correct result The program handles "double precision floating point values like 100.0 or 187.5 The output weight is an integer. Al code is correctly indented. To for indents automatically, type Ctrl-Shift F. This also limits line lengths to 80 characters.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!