Question: 1. Shuffle rows Write a method that shuffles the rows in a two-dimensional array using the following header: Public static void shuffle(int) m) Write a

1. Shuffle rows Write a method that shuffles the rows in a two-dimensional array using the following header: Public static void shuffle(int) m) Write a test program that shuffles the following matrix: Int[)0) m={{2,1},{5,6),{9,10),(4,3},{8,7}}; Answer: 2.Create three-dimensional array and its index indicates 5 students, 3 exams and 2 types of test marks. Read marks of students from the terminal and store them in student100 array Find average marks of each student and display which student scored greatest average mark Answer: 3. Retail item record Write a class named Retailitem that holds data about an item in a retail store. The class should have the following fields: Item number, description, unitseoband, and price. Write a constructor that accepts arguments for each field, appropriate mutator methods that store values in these fields, and accessor methods that return the values in these fields. Once you have written the class, write a separate program that creates array of objects that stores atleast 5 records and display them in the following manner: Item.de Description Unitsonhand Price shirt 83.50 10 Answer: 4. Write a recursive method that computes the sum of first n terms in the series using recursion: 1-1/2+1/3-1/4+1/5.... N. Answer: Write a recursive method that mingle the two strings. For example: Input strings: str1-L2L2L... Ln and str2=M1M2M2... MA Output string: str3=L:M:L2M2..baMO
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
