Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

[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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions