Modify your program from Exercise 3.22 to print out the value of the weight in pounds. In other words, the final program should read in a weight in kilograms and print it out in pounds. Your program should not generate an error if the user types in ‘kg’ after the weight, but should simply ignore it. Use the Convert class from Exercise 3.19 to do the conversion.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here