1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Juliette [100K]
3 years ago
15

) For a course with n students, an n X 3 array, int[][] arr, holds scores on 3 exams. Each row holds the exam scores for one stu

dent, one exam per column. Write code to get the average of cumulative exam score, over all students. For instance, if student1 scored 50,60,65 in the three exams, and student2 scored 75,85,90, then the cumulative exam score for student1 is 175 and that for student2 is 250, and the resulting average is 212.5
Computers and Technology
1 answer:
anzhelika [568]3 years ago
7 0

Answer:

Following are the code to this question:

import java.util.*;//import package  

public class Main //defining a class

{

public static void main(String[] ax)//defining main method

{

      int student[][] = {{50,60,65},{75,85,90}}; //defining double array student  

      int Row=0,Col=0;//defining integer variable

      double x;//defining double variable

      for (int a = 0; a <student.length; a++)//use for loop to holding row value

       {  

           for (int b = 0; b<student[a].length; b++)//use for loop to holding column value  

           {  

               Row += student[a][b];//add row value

               Col += student[0][b];//add column value

           }

       }

       System.out.println(x=Row/2);//dividing value and calculating average value

}

}

Output:

212.0

Explanation:

In the above code, a 2D array student is declared, that holds some value in the next step, two integer variable "Row and Col", is declared, which it uses the for loop to add value in "Row and Col", and in the next step, a double variable x is declared, that add value and calculates its average value and store its value in x variable and print its value.

You might be interested in
When preparing the heading for an MLA Format Academic Report, which of the following shows the proper order of the for lines of
Sloan [31]

Answer:

A. Student Name, Instructor, Course, Date

Explanation:

Begin one inch from the top of the first page and flush with the left margin. Type your name, your instructor's name, the course number, and the date on separate lines, using double spaces between each. Double space once more and center the title

3 0
3 years ago
Help me please I dont have enough points for people just to get these for free
Gekata [30.6K]

Answer:

help me please I dont have enough points for people just to get these for free

Sam is a movie director. He has asked his storyboard artist to create an image of the central character looking ecstatic after receiving an award. What type of shot does the director need from the storyboard artist?

A. long shot

B. point of view shot

C. reaction shot

D. jump cut​

A is the asnwer

3 0
2 years ago
Game development is a time-consuming and expensive endeavor, and being a Lone Ranger is a recipe for disaster
belka [17]
False although depends on the future of the person's ideas
7 0
3 years ago
7.5 code practice edhesive plssss
vredina [299]

So your parent hasn't joined you on the Brainly express to Achievement-ville. We'll get them on board. Parents are busy people, but you can be the boss and remind them. Remind them how Brainly boosts you with expert knowledge. Remind them that tons of students already get grade upgrades with Brainly Plus. Remind your parent of the power they have to raise you to your full potential. We think they would agree. You deserve every education advantage.

6 0
2 years ago
Read 2 more answers
Michael is discussing various project needs with his team. Match Michael's statement with the way project management can help th
VashaNatasha [74]

Answer:

"We need to maintain a performance standard for the processes in the project." - <em>managing quality</em>

"There can be certain threats or problems during project execution. We need to handle them." - <em>managing risks</em>

"The client needs some additional requirements in the project. We need to accommodate them." - <em>managing change</em>

"The project activities are getting chaotic. We need to manage them efficiently." - <em>organizing activities</em>

Explanation:

Project management can help Michael manage all these needs that he and his team have. Project management is the application of skills and tools to a particular project. This requires certain knowledge and techniques in order to ensure that the project requirements are properly met. Project management does not generally deal with a whole company at once. Instead, a project is a temporary situation, and it needs to be completed within a specific timeframe. It also means that such a project has a defined scope and resources, which make efficient management even more important.

5 0
2 years ago
Other questions:
  • The two types of one-time-password tokens are ______ and ______.
    10·2 answers
  • Which device or software application detects errors in system configurations?
    8·1 answer
  • Write a program that reads in an array of type int . you may assume that there are fewer than 50 entries in the array. your prog
    6·1 answer
  • What are the different between Facebook and LinkedIn
    15·2 answers
  • The multitasking, multi-user, operating system developed by Bell Laboratories that operates on a wide variety of computing platf
    13·1 answer
  • This exspansion slot essentially replaced PCI and AGP slots
    14·1 answer
  • The term ____ describes primary storage devices that are implemented as microchips, can read and write with equal speed, and can
    8·1 answer
  • Pls tell me the answer pls i need the answer
    6·2 answers
  • Viktor has climbed a tall tree to get a good view of the giraffes on the savannah. He is snapping lots of photographs of the gir
    8·1 answer
  • Consider the following static method.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!