Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create methods to compute statistics. The JAVA project tests your ability in two core areas: Methods Writing and defining methods and calling them for use

Create methods to compute statistics.The JAVA project tests your ability in two core areas:

  • Methods
    • Writing and defining methods and calling them for use
  • Passing arrays between methods

Consider that there are S number of students in a class. Further, assume that each of the students has taken E quizzes in a semester,. You will calculate the average score received by each student in the class. For each student, the average score is calculated by summing up the scores received by the student in the E quizzes divided by the number of quizzes, i.e. E. You will further calculate the average score of each of the quiz by summing up the scores received by all the students for an quiz divided by the number of students. The figure below shows an example report of 5 students and 3 quizzes. The arrow at the right in the figure shows the average score received by the student S0. And the arrow at the bottom shows the average of quiz E0.

You will submittwooutput files andStatistics.java.One of the output files will show the statistics for S=5 students and E=3 quizzes. And the other output will show S=8 students and E=4 quizzes. The output format should be according to the output shown below.

Output 1 sample:

Output 2 sample:

Project Requirements:

  1. Create a JAVA file namedStatistics.java. You will implement 5 methods in this file.

1.

  • static int[][] populateData(int studs, int quizzes){ }
    • This method takes two input arguments:studsspecifies the number of students, and quizzes specifies the number of quizzes taken by a student.
    • The method creates a 2D array ofstudsrows and quizzescolumns. For example, if there are 8 students and each student takes 4 quizzes, then the method declares an integer array asstudentReports[8][4].
    • The method will populate data in each of the array cells using a random number generator

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

Pro Android Graphics

Authors: Wallace Jackson

1st Edition

1430257857, 978-1430257851

More Books

Students also viewed these Programming questions

Question

=+b) Should the company send the fact-finding trip? Explain.

Answered: 1 week ago