
Concept explainers
JAVA
PLEASE TYPE ONLY***
PANTHER NUMBER: 1462 ****
program, YourLastNameTest1A.java:
In main method:
• Print out your first name, last name and last 4 digits of panther number(1462)
• Create 2-D array, say m:
Assuming the last digit of your panther number is N, set N+6, as the row size of array m
Ask the user to input column size for array m from the keyboard (use scanner)
Fill all array elements as double numbers in the range of (6.0 , 16.0) by using of Random object
• Create another 2-D array, say double[][]mc={{1,1,1},{2,0,1},{3,6,3}};
• Pass the above array m and mc, to call the following two methods
MinCol(m);
MinCol(mc);
System.out.println ("the average of array m is: " + returnLast2RowAvg(m));
System.out.println ("the average of array mc is: " + returnLast2RowAvg(mc));
• Print out the largest column sum, and the average of last 2 rows of array m and mc
• In MinCol(double[][] array) method, find and print the smallest column sum in the array
• In returnLast2RowAvg (double[][] array) method, find the average of the elements in last 2 rows in the array and return this average value

Step by stepSolved in 2 steps with 1 images

- I need this program in java please. #Given Arrayarray=[1,1,1,2,2,2,2,2,4,5,5,6,6,6] #Insert valuevalue=3 index=0for x in array: if value<x: #inserting to the array in the position index array.insert(index,value) print ("Output :",array) break #Incrementing position by 1 index=index+1arrow_forwardPrompt: In Python language, write a function that applies the logistic sigmoid function to all elements of a NumPy array. Code: import numpy as np import math import matplotlib.pyplot as plt import pandas as pd def sigmoid(inputArray): modifiedArray = np.zeros(len(inputArray)) #YOUR CODE HERE: return(modifiedArray) def test(): inputs = np.arange(-100, 100, 0.5) outputs = sigmoid(inputs) plt.figure(1) plt.plot(inputs) plt.title('Input') plt.xlabel('Index') plt.ylabel('Value') plt.show() plt.figure(2) plt.plot(outputs,'Black') plt.title('Output') plt.xlabel('Index') plt.ylabel('Value') plt.show() test()arrow_forwardMethod Details: public static java.lang.String getArrayString(int[] array, char separator) Return a string where each array entry (except the last one) is followed by the specified separator. An empty string will be return if the array has no elements. Parameters: array - separator - Returns: stringThrows:java.lang.IllegalArgumentException - When a null array parameter is providedarrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





