Question: Write the Java programs (not pseudo codes or algorithms) for the following problems: 1. Write a value-returning method, is Vowel() that returns the value

Write the Java programs (not pseudo codes or algorithms) for the following

Write the Java programs (not pseudo codes or algorithms) for the following problems: 1. Write a value-returning method, is Vowel() that returns the value true if a given character is a vowel, and otherwise returns false. In main() method accept a string from user and count number of vowels in that string using is Vowel() method. 2. Write a value returning method factorial() that calculates and returns the factorial of a given number. In main() method, accept a number from the user and validate it. The number is valid if it is non- negative and less than or equal to 10. If the number is valid, call the factorial() method otherwise ask the user to input another number. 3. Write a Java program to find the largest and smallest element of an array. 4. Write a Java program to reverse the elements of an integer 1-D array with and without using a temporary array. [write two methods reversel() and reverse20): reversel() uses another temporary array while reverse2 does not use another array] 5. Write a user defined method named upperHalf() which takes a two-dimensional array A, with size N rows and N columns as argument and prints the upper half of the array. e.g., 23150 71531 25781 0 150 1 34915 23150 1531 The output will be 178 01 5 6. Next, define another method upperHalfSum() which find the sum of the upper half of the array. 7. Write a user-defined method sumArrays() that takes 2 two-dimensional arrays of same sizes. The method returns another array that contains the sum of the corresponding elements of these two arrays.

Step by Step Solution

3.26 Rating (170 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Java programs for the problems you mentioned Vowel Checker import javautilScanner public class VowelChecker public static void mainString args Scanner ... View full answer

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 Programming Questions!