Question: Use a class constructor to initialize values for weight to 100 pounds. Program should let the user know the execution with a default value for

Use a class constructor to initialize values for weight to 100 pounds. Program should let the user know the execution with a default value for the program. Output all weight conversions in pounds and with the default value if the user enters an amount

Create class called Weight; create getter and setter methods that will solve the problem of planetary body conversion. Use main to organize the execution of the program; program will not close until user selects quit option; program will prompt user with the menu only if the weight input is valid for conversion.

Calculate user's weight on Mercury, Venus, Mars and Earth's moon. Validate user before performing calculations.

Use if / else ladder to create value.

Use a class constructor to initialize values for weight to 100 pounds.

Weight Conversion Program: * Enter # to run program or Quit 1) Earth Moon Weight 2) Mercury Weight 3) Venus Weight 4) Mars Weight * 5) Quit

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!