Question: Write a simple JAVA program that converts pounds into kilograms and stones and includes input validation and discussed in class: The program should prompt the
Write a simple JAVA program that converts pounds into kilograms and stones and includes input validation and discussed in class: The program should prompt the user to enter a number in pounds (double), then convert it to kilograms (double), and stones (double) and display the results Please use a named constants for the conversion factor to convert pounds to kilograms and stones Your program should check for valid and invalid (negative pounds) inputs and respond appropriately Please test your programs for a variety of inputs to thoroughly test your code, including both valid and invalid input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
