utilizing r, how do you do this function?
Make a 2 dimensional array of normally distributed random numbers in R with 20 rows and 2 columns
Use array(x , dim = c(20, 2)), make sure that the vector, x, has the correct number of observations to match the dimensionality, namely 40 (20 x 2)
utilizing r, how do you do this function? Make a 2 dimensional array of normally distributed...
Using python 2-dimensional array to find the average marks of all subject for all the following students: Student IDMidTermProjectAssignmentFinal Exam140/5050/10015/2050/100250/5030/10010/2010/100322/5043/1008/2030/100440/5036/10019/2043/100520/5080/10011/2051/100 Rules to follow:Please make use of 2-Dimensional Array to store the above data and perform calculation. Make sure the average is printed in 2 decimal point. Please store your two dimension array with variable datass in the submission template. Do not use your own variable. This might affect the accuracy of system grading. Make sure your algorithm able to support different size...
Write a menu based program implementing the following functions: (0) Write a function called displayMenu that does not take any parameters, but returns an integer representing your user's menu choice. Your program's main function should only comprise of the following: a do/while loop with the displayMenu function call inside the loop body switch/case, or if/else if/ ... for handling the calls of the functions based on the menu choice selected in displayMenu. the do/while loop should always continue as long...
Define a two-dimensional int array which has 5 rows and 3 columns. The elements in array is randomly initialized (using Math.random()). Write a method to find the maximum value in this two dimensional array; Write a method to find the average value in the array; Write a method to count how many elements are smaller than average; Write a method to copy contents in a two-dimensional array to a one-dimensional array. The method will return this one-dimensional array. Method is...
in java / You will: // 1- create a square 2 dimensional array of random size (less than 11) // 2- fill the array with random integers from 1 to the size limit // 3- print the array // 4- prompt to see if the user wants to do another //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // 1- The square can use the same random value for x and y. Don't allow 0 size arrays. // 2- Maybe a nested set of for loops? to...
1. Write a function that converts a string into an int. Assume the int is between 10 and 99. Do not use the atoi() or the stoi() function. 2. Write a function prototype for problem 1. 3. Write a function call for the function you defined in problem 1. 4. Write a function that converts an int between 10 and 99 into a string. 5. Write a function prototype for problem 4. 6. Write a function call for function you...
create a new Java application called "Scorer" (without the quotation marks) that declares a two-dimensional array of doubles (call it scores) with three rows and three columns and that uses methods and loops as follows. Use a method containing a nested while loop to get the nine (3 x 3) doubles from the user at the command line. Use a method containing a nested for loop to compute the average of the doubles in each row. Use a method to...
Use basic java for this after importing PrintWriter object You will make a simple Magic Square program for this Java Programming Assignment. Carefully read all the instructions before beginning to code. It is also required to turn in your pseudocode or a flowchart along with this program. Here are the instructions: At the beginning of the program, briefly describe to the user what a Magic Square Matrix is (described further on), and then allow them to enter “start” to begin...
please do all in C++ code, thank you. Worth 1 point Checkpoint 7.12 Write a statement that assigns the value 10 to the first elementof an array of integers named minutes. Type your program submission here Worth 1 point Checkpoint 7.14 Write a cout statement that will display contents of the second element of an array named courseNumbers Type your program submission here Submit Worth 1 point Checkpoint 7.15 Write a cin statement that will store the user's input in...
sorry R is 8 Question 5 10 marks (a) . Suppose X is a normally distributed random variable with a mean of 15 and a standard deviation of 2.34+G Find the following probabilities. Correct your answers to 4 decimal places. (1) (ii) P(X > 14.5) P(15.3 < X < 16.8) (2 marks) (3 marks) (b) Suppose X is the sample mean of 10 observations selected randomly from a normal distribution with a mean of 15 and a standard deviation of...
[MATLAB] Write a function called myMultProd.m that computes the cumulative product of the elements in a vector. The cumulative product, pj, of the jth element of the vector x, xj, is defined by pj = (x1)(x2) … (xj) for j = 1:length of the vector x. DO NOT USE CUMPROD For example, when you run your function it should look like this: >> x = [2 3 4 2]; >> myMultProd(x) >> ans = 2 6 24 48 That is,...