Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

h. Complete the program so your code will find the maximum column sum in a given 2. Complete the program so your code will find

image text in transcribed
h. Complete the program so your code will find the maximum column sum in a given 2. Complete the program so your code will find the average mark for each student 2-D array named array1, now you are asked to double each number in this column. and find the maximum and minimum average marks for this mark set, then you are Your code should automatically respond to the changed numbers in array1. After you going to print the result following an example shown below. Your code should finished, please print out the new array. automatically respond to the different sizes, different names, different marks in the Hard coded (Manually calculated and printed) program will get mark of ZERO. mark set named marksArray. Your comments and variable names will be marked for communication. Hard coded (Manually calculated and printed) program will get mark of ZERO. For example: Your comments and variable names will be marked for communication. int array1= { For example: {6, 4, 2, 171 {3, 5, 8, 3}, String names={"Tom", "Jason", "Mary", "Rose"}; {7, 3, 1, 2} {2, 4, 6, 5} int marksArray= { (64, 94, 62, 17), will be changed to (double every element in the column with maximum col sum) [73, 85, 68, 43), (77, 93, 51, 32), [6, 4, 2, 34), (82, 98, 56, 15} {3, 5, 8, 6} Output will be : {7, 3, 1, 4} {2, 4, 6, 10} Average for Tom: 74 Average for Jason: 92.5 Average for Mary: 59.25 import java.util.*; public class Main Average for Rose: 26.75 The maximum average is 92.5 public static void main(String args] { The minimum average is 26.75 import java.util.*; public class Main int array1= { [6, 4, 2, 7}, public static void main(String args] { {3, 5, 8, 3}, String names=("Tom", "Jason", "Mary", "Rose"}; {8, 2, 1, 2} int marks= { [9, 4, 6, 5} (64, 94, 62, 17), {73, 85, 68, 431 //loop over to find the maximum col5um; {77, 93, 51, 32} // remember which col has the maximum sum; [82, 98, 56, 15} // double every element in the column with maximum col sum; //loop over to find the colAverage, minimum average and maximum average ; // Print the output for every student; W//end main W//end class V//end main 2. A 1-D array with students' names are provided and the names are vertically aligned W//end class with the marks in the marksArray. For example, Tom's marks are stored vertically in marksArray as shown 64, 73, 77, 82

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

2. What is the meaning of open interest?

Answered: 1 week ago