write code in java
COSC 113
In CLASS Lab Assignment 6
Methods and Classes
Due: 10/4/2023 11:59pm
1. Write a value-returning method, isVowel, that returns the value true if a given character
is a vowel, and otherwise returns false. Also write a program to test your method.
2. Write a program that prompts the user to input a sequence of characters and outputs the
number of vowels. (Use the method isVowel written in Programming question 1.)
3. Write a program that uses the method sqrt of the class Math and outputs the square roots
of the first 25 positive integers. (Your program must output each number and its square
root.)
4. Write a method, reverseDigit, that takes an integer as a parameter and returns the number
with its digits reversed. For example, the value of reverseDigit(12345) is 54321. Also,
write a program to test your method.