Question: please solve this programs [03] Create a method with the following specifications: 1. Name: fracArray 2. Return: your responsibility 3. Parameters: your responsibility. 4. Process:
please solve this programs
![please solve this programs [03] Create a method with the following specifications:](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f466e6390ef_15766f466e5b9018.jpg)
[03] Create a method with the following specifications: 1. Name: fracArray 2. Return: your responsibility 3. Parameters: your responsibility. 4. Process: a. Accepts a 10 double array and checks each element. b. If the ith element has a fraction, it saves "true" in the ith position of a boolean array else, it saves "false" c. Finally, it returns the boolean array, [04] Create a method with the following specifications: 1. Name: sum Diagonal 2. Returns: your responsibility 3. Parameters: your responsibility 4. Process: a. Accepts a 2D int array. Page 2 of 3 A. ALK AMERICAN Dept. of Computer Science and Information Systems-CSIS College of Arts and Sciences CSIS 120 - Computer Programming Section 2 KUWAIT Fall 2020- b. Assumes the 2D array is a square. C. Calculates the summation of the elements in the diagonal of the 2D array. See image below d. Returns the summation. [05] Create a method with the following specifications: 1. Name: namePos 2. Return: your responsibility. 3. Parameters: your responsibility 4. Process: a. Accepts an arraylist of strings and a name b. Searches the arraylist for the given name c. If it finds the name in the ith position, it adds the position to a second arraylist. d. Returns the second arraylist 5. Assumptions: multiple copies of "name" may exist in the list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
