The assumptions for this part are: 1. The array can have any number of elements. 2....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The assumptions for this part are: 1. The array can have any number of elements. 2. The elements can hold any valid integer value, positive or negative. 3. The absolute sum of any two adjacent elements will be less than 300. Part 3 - 2-Dimensional Array Special Product Your task is to implement the code to meet the requirements listed below. In replit.com, within the ClassUtilities.java file, you will be editing the product Dimension method. This method receives one integer 2-dimensional array as a parameter. Your task is to find the product each of the elements in a column (as shown below), and then return an array of the products. For example, if the one integer 2-dimensional array passed in is: ArrayOne = { [2, 4, 6}, {3, 5, 7}, {8, 10, 12}} It can be represented as the following table: ArrayOne [0] [0] ArrayOne [1] [0] ArrayOne [2] [0] And the values represented as: 2 3 8 ArrayOne [0] [1] ArrayOne [1] [2] ArrayOne [2] [1] 4 ReturnArray = { 48, 90, 504 } 5 10 ArrayOne [0] [2] ArrayOne [1] [2] ArrayOne [2] [2] 6 7 12 Then the array that you will need to return would be the product of the columns, which would be: The assumptions for this part are: 1. The array can have any number of elements, but each dimension will have the same number. 2. The elements can hold any valid integer value, positive or negative. Final Project This final project is all about our eBook through chapters 9 exercises, readings and our class lectures. There are three parts to this project. Part 1 - Common Elements Your task is to implement the code to meet the requirements listed below. In replit.com, within the ClassUtilities.java file, you will be editing the commonElements method. This method receives three integer arrays as parameters. Your task is to find the common elements between the three arrays, and then return an array with the common elements. For example, if the three integer arrays passed in are: ArrayOne = { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 } ArrayTwo { 4, 5, 6, 12, 13, 14, 15, 16, 17, 18, 22, 23, 24, 25} ArrayThree { 5, 6, 14, 15, 16, 23, 24, 25 } Then the array that you will need to return would be: = = ReturnArray = { 14, 15, 16 } The assumptions for this part are: 1. Each array can have any number of elements and they do not need to be the same. 2. The elements can hold any valid integer value, positive or negative. Part 2 - Prime Numbers Your task is to implement the code to meet the requirements listed below. In replit.com, within the ClassUtilities.java file, you will be editing the prime Numbers method. This method receives one integer array as a parameter. Your task is to find the sum of any two adjacent elements, add them together, get the absolute value, and then determine if that number is a prime number. You will then return an array of the prime numbers. For example, if the one integer array passed in is: ArrayOne = { 3, 5, 2, -21, 7, 16 } Then the array that you will need to return would be: ReturnArray = {7, 19 } The assumptions for this part are: 1. The array can have any number of elements. 2. The elements can hold any valid integer value, positive or negative. 3. The absolute sum of any two adjacent elements will be less than 300. Part 3 - 2-Dimensional Array Special Product Your task is to implement the code to meet the requirements listed below. In replit.com, within the ClassUtilities.java file, you will be editing the product Dimension method. This method receives one integer 2-dimensional array as a parameter. Your task is to find the product each of the elements in a column (as shown below), and then return an array of the products. For example, if the one integer 2-dimensional array passed in is: ArrayOne = { [2, 4, 6}, {3, 5, 7}, {8, 10, 12}} It can be represented as the following table: ArrayOne [0] [0] ArrayOne [1] [0] ArrayOne [2] [0] And the values represented as: 2 3 8 ArrayOne [0] [1] ArrayOne [1] [2] ArrayOne [2] [1] 4 ReturnArray = { 48, 90, 504 } 5 10 ArrayOne [0] [2] ArrayOne [1] [2] ArrayOne [2] [2] 6 7 12 Then the array that you will need to return would be the product of the columns, which would be: The assumptions for this part are: 1. The array can have any number of elements, but each dimension will have the same number. 2. The elements can hold any valid integer value, positive or negative. The assumptions for this part are: 1. The array can have any number of elements. 2. The elements can hold any valid integer value, positive or negative. 3. The absolute sum of any two adjacent elements will be less than 300. Part 3 - 2-Dimensional Array Special Product Your task is to implement the code to meet the requirements listed below. In replit.com, within the ClassUtilities.java file, you will be editing the product Dimension method. This method receives one integer 2-dimensional array as a parameter. Your task is to find the product each of the elements in a column (as shown below), and then return an array of the products. For example, if the one integer 2-dimensional array passed in is: ArrayOne = { [2, 4, 6}, {3, 5, 7}, {8, 10, 12}} It can be represented as the following table: ArrayOne [0] [0] ArrayOne [1] [0] ArrayOne [2] [0] And the values represented as: 2 3 8 ArrayOne [0] [1] ArrayOne [1] [2] ArrayOne [2] [1] 4 ReturnArray = { 48, 90, 504 } 5 10 ArrayOne [0] [2] ArrayOne [1] [2] ArrayOne [2] [2] 6 7 12 Then the array that you will need to return would be the product of the columns, which would be: The assumptions for this part are: 1. The array can have any number of elements, but each dimension will have the same number. 2. The elements can hold any valid integer value, positive or negative. Final Project This final project is all about our eBook through chapters 9 exercises, readings and our class lectures. There are three parts to this project. Part 1 - Common Elements Your task is to implement the code to meet the requirements listed below. In replit.com, within the ClassUtilities.java file, you will be editing the commonElements method. This method receives three integer arrays as parameters. Your task is to find the common elements between the three arrays, and then return an array with the common elements. For example, if the three integer arrays passed in are: ArrayOne = { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 } ArrayTwo { 4, 5, 6, 12, 13, 14, 15, 16, 17, 18, 22, 23, 24, 25} ArrayThree { 5, 6, 14, 15, 16, 23, 24, 25 } Then the array that you will need to return would be: = = ReturnArray = { 14, 15, 16 } The assumptions for this part are: 1. Each array can have any number of elements and they do not need to be the same. 2. The elements can hold any valid integer value, positive or negative. Part 2 - Prime Numbers Your task is to implement the code to meet the requirements listed below. In replit.com, within the ClassUtilities.java file, you will be editing the prime Numbers method. This method receives one integer array as a parameter. Your task is to find the sum of any two adjacent elements, add them together, get the absolute value, and then determine if that number is a prime number. You will then return an array of the prime numbers. For example, if the one integer array passed in is: ArrayOne = { 3, 5, 2, -21, 7, 16 } Then the array that you will need to return would be: ReturnArray = {7, 19 } Final Project This final project is all about our eBook through chapters 9 exercises, readings and our class lectures. There are three parts to this project. Part 1 - Common Elements Your task is to implement the code to meet the requirements listed below. In replit.com, within the ClassUtilities.java file, you will be editing the commonElements method. This method receives three integer arrays as parameters. Your task is to find the common elements between the three arrays, and then return an array with the common elements. For example, if the three integer arrays passed in are: ArrayOne = { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 } ArrayTwo { 4, 5, 6, 12, 13, 14, 15, 16, 17, 18, 22, 23, 24, 25} ArrayThree { 5, 6, 14, 15, 16, 23, 24, 25 } Then the array that you will need to return would be: = = ReturnArray = { 14, 15, 16 } The assumptions for this part are: 1. Each array can have any number of elements and they do not need to be the same. 2. The elements can hold any valid integer value, positive or negative. Part 2 - Prime Numbers Your task is to implement the code to meet the requirements listed below. In replit.com, within the ClassUtilities.java file, you will be editing the prime Numbers method. This method receives one integer array as a parameter. Your task is to find the sum of any two adjacent elements, add them together, get the absolute value, and then determine if that number is a prime number. You will then return an array of the prime numbers. For example, if the one integer array passed in is: ArrayOne = { 3, 5, 2, -21, 7, 16 } Then the array that you will need to return would be: ReturnArray = {7, 19 }
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Step One: (Audrey) Stakeholder X = Andrew Ng , a computer scientist and entrepreneur who has played a key role in advancing AI in industry and academia. Ng was a co-founder of Google Brain and the...
-
In this question assume that p and q are atomic formulae. (a) Compare and contrast path formulae and state formulae in temporal logic. [4 marks] (b) Describe and contrast the meanings of F(G p) and...
-
Using the Trust Services Principles and Criteria for the Online Privacy Principle, develop an online privacy policy for Alltel Stadium that could be posted on the stadiums website for customers to...
-
During fiscal year 2016, Honey Bakery reported a net income of $132.4 million. Honey Bakery received $1.4 million from the sale of other businesses. Honey Bakery made capital expenditures of $10.0...
-
If the products sell extremely well, we will build more in season, and will be back on the shelves in a few weeks. And we'll build even more, and even more, and even more, in that same season. We're...
-
What is the process for starting an appeal?
-
Which portfolio is better diversified, one that contains stock in a dental supply company and a candy company or one that contains stock in a dental supply company and a dairy product company?
-
Coke's most recent dividend was $1. Dividends are expected to grow by 15% for the next two years which would lead to dividends of $1.15 at time 1 and $1.32 at time 2. After that, dividends are...
-
In a sensor network, the energy consumed by different functions by a sensor is as follows: Assume the total number of nodes as P, the number of cluster heads to be m, the number of sensor nodes which...
-
A 120 ft. long, 2 in. diameter steel rod is expected to fail at 80,000 psi. If a safety factor of 2 is required what would be the largest allowable axial loading of the rod. (Esteel = 30 x 106 psi)
-
Employing elementary transformations, find the inverse of the matrix 0 1 2 (i) 1 2 3 3 1 1 1 2 3 1 1 3 3 2 (ii) 2433 1 1 1 1
-
sunland zone corporation expeirenced variances: materials price $ 3 1 0 U , materials quanity $ 1 , 5 0 0 F , labor price $ 7 0 0 F , and total overhead $ 1 , 0 6 0 U . Sales revenue was $ 8 1 , 0 0...
-
How is technology transforming social relationships and communication, and what are the broader implications for social structure and identity ?
-
In its first month of operations, Carla Vista Company made three purchases of merchandise in the following sequence: (1) 240 units at $9, (2) 340 units at $11, and (3) 440 units at $12. Assuming...
-
Calculate the working capital at Dec 31, 2022. 6) The following amounts were reported on the December 31, 2022, balance sheet: Cash Land Accounts payable 8,000 20,000 15,000 Bonds payable 120,00 0...
-
1. Consider the following dynamic optimization problem for an individual: e-ptIn(c(t))dt w(t) = rw(t)- c(t) w(0) = wo, w(T) = WT max s.t. where c(t) denotes consumption, w(t) denotes total wealth, p...
-
Portal Manufacturing has total fixed costs of $520,000. A unit of product sells for $15 and variable costs per unit are $11. a). Prepare a contribution margin income statement showing predicted net...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family. Ivan and Irene have the following investment income, in addition to that reported in Chapter 1: Dividends...
-
William sold Section 1245 property for $25,000 in 2012. The property cost $35,000 when it was purchased 5 years ago. The depreciation claimed on the property was $16,000. a. Calculate the adjusted...
-
Leslie is a single taxpayer who is under age 65 and in good health. For 2012, she has a salary of $23,000 and itemized deductions of $1,000. Leslie is entitled to one exemption on her tax return. a....
-
What is a computer service center? Are the auditors of a client that uses a service center concerned about the controls applied at the organization? Explain.
-
What is a dual-purpose test?
-
If you were preparing a credit sales system flowchart, what document would you show as: a. The source for posting debits to a customers account in the accounts receivable ledger? b. Authorization to...
Study smarter with the SolutionInn App