Перейти к содержанию

Java

Новичок
  • Публикаций

    3
  • Зарегистрирован

  • Посещение

  • Отзывы

    0%

Репутация

0

Информация о Java

  • Звание
    Только пришел
  1. Ищу JAVA знатока/программиста на завтра (28.11.2013) КР с 12.00 до 13.15 по МСК для помощи в решении JAVA задач. JAVA для начинающих курс у меня. Задачи легкие для новичков java, вот например: //Write a method in Java to generate an integer matrix of size n x n (n is a parameter of the method) elements of which are calculated by finding a maximum of the row index and the //column index of the element (indices start from zero). There are n>2 judges and each gives a mark to sportsmans performance. Two extreme marks (one highest and one lowest) are removed and artithmetical mean of remaining n-2 marks is calculated. Write a Java method to determine the sportsmans result. public static double result (double[] marks) public class Answer { public static void main (String[] args) { System.out.println (result (new double[]{0., 1., 2., 3., 4.})); // YOUR TESTS HERE } public static double result (double[] marks) { double vaikseim = 0, suurim = 0, summa = 0; if(marks[0] > marks[1]) { vaikseim = marks[1]; suurim = marks[0]; } else { vaikseim = marks[0]; suurim = marks[1]; } summa = vaikseim + suurim; for(int i = 2; i < marks.length; i++) { if(marks[i] > suurim) suurim = marks[i]; else if(marks[i] < vaikseim) vaikseim = marks[i]; summa+= marks[i]; } summa = summa - vaikseim - suurim; return summa/(marks.length-2); // TODO!!! YOUR PROGRAM HERE } } Write a method in Java to find the array of minimums of columns of a given matrix of integers m (j-th element of the answer is the minimum of elements of the j-th column in the matrix). Rows of m might be of different length. public static int[] veeruMinid (int[][] m) Кто будет завтра (28.11.2013) в это время свободен, помогите пожалуйста) Нужна высокая оценка... С меня обязательно +1 отзыв, и если кто-то поможет на 5, то могу даже заплатить, но не много, в скайпе можно будет обсудить.
×
×
  • Создать...