1. Write a multiway if statement to decide how intense an earthquake was based on the following scale:
2. A hexadecimal numeral uses the digits 0 through 9 and the letters A through F to denote its value. The letters A through F represent the decimal values 10 through 15. Assuming that hexDigit is a char variable that contains either a character 0 through 9 or a letter A through F, write Java statements to assign the character’s decimal equivalent to the integer variable decValue.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here