Question 2: write a complete Java class and follow the steps: A. Create class and name it as ArrayOperation. Write the main function. In the main function, define array of size 3x4 of type double, name the array as DoubleList. Store the followings values into the array 10, 20,30,40,50,70,90,100,-8,-5,-1,-4 Create function and name it as PrintArray. The type of function is void and it has double array of two dimensional. The name of the array is DoubleArr defined in the function header as formal parameter. PrintArray should print all the values of the array. Test PrintArray function in the main function.
Question 2: write a complete Java class and follow the steps:
A. Create class and name it as ArrayOperation.
Write the main function.
In the main function, define array of size 3x4 of type double, name the array as DoubleList.
Store the followings values into the array 10, 20,30,40,50,70,90,100,-8,-5,-1,-4
Create function and name it as PrintArray. The type of function is void and it has double
array of two dimensional. The name of the array is DoubleArr defined in the function header
as formal parameter.
PrintArray should print all the values of the array.
Test PrintArray function in the main function.
Create class and name it as ArrayOperation.
Write the main function
In the main function, define array of one dimensional size of 5, of type Sring . The name of the
array is StringList.
Store the followings values into the array "Information", "Science", "Math", "Data base",
"Machine Learning"
Create function and name it as UpperCase. The type of function is void, and it has String array
of one dimensional. The name of the array is StringArr defined in the function header as formal
parameter. UpperCase function should convert all the values of the array to upper case words.
Create function and name it as LowerCase. The type of function is void, and it has String array of
one dimensional. The name of the array is StringArr defined in the function header as formal.
LowerCase function should convert all the values of the array to lower case words.
Create function and name it as PrintArray. The type of function is void and it has String array of
one dimensional. The name of the array is StringArr defined in the function header as formal
parameter. PrintArray should print all the values of the array.
Test UpperCase, LowerCase, PrintArray in the main function.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images